mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 23:37:33 +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:
parent
f1b16047b7
commit
b01c85b421
@ -215,7 +215,7 @@ public:
|
||||
/// it prints a message to stderr and aborts.
|
||||
///
|
||||
/// This function is deprecated for the MCJIT execution engine.
|
||||
virtual void *getPointerToNamedFunction(const std::string &Name,
|
||||
virtual void *getPointerToNamedFunction(StringRef Name,
|
||||
bool AbortOnFailure = true) = 0;
|
||||
|
||||
/// mapSectionAddress - map a section to its target address space value.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user