mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[MCJIT] Start Stringref-izing the ExecutionEngine interface.
More methods to follow. Using StringRef allows us the EE interface to work with more string types without forcing construction of std::strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -116,7 +116,7 @@ public:
|
||||
GenericValue runFunction(Function *F,
|
||||
const std::vector<GenericValue> &ArgValues) override;
|
||||
|
||||
void *getPointerToNamedFunction(const std::string &Name,
|
||||
void *getPointerToNamedFunction(StringRef Name,
|
||||
bool AbortOnFailure = true) override {
|
||||
// FIXME: not implemented.
|
||||
return nullptr;
|
||||
|
@@ -517,8 +517,7 @@ GenericValue MCJIT::runFunction(Function *F,
|
||||
llvm_unreachable("Full-featured argument passing not supported yet!");
|
||||
}
|
||||
|
||||
void *MCJIT::getPointerToNamedFunction(const std::string &Name,
|
||||
bool AbortOnFailure) {
|
||||
void *MCJIT::getPointerToNamedFunction(StringRef Name, bool AbortOnFailure) {
|
||||
if (!isSymbolSearchingDisabled()) {
|
||||
void *ptr = MemMgr.getPointerToNamedFunction(Name, false);
|
||||
if (ptr)
|
||||
|
@@ -293,7 +293,7 @@ public:
|
||||
/// found, this function silently returns a null pointer. Otherwise,
|
||||
/// it prints a message to stderr and aborts.
|
||||
///
|
||||
void *getPointerToNamedFunction(const std::string &Name,
|
||||
void *getPointerToNamedFunction(StringRef Name,
|
||||
bool AbortOnFailure = true) override;
|
||||
|
||||
/// mapSectionAddress - map a section to its target address space value.
|
||||
|
Reference in New Issue
Block a user