mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[MCJIT] Turn the getSymbolAddress free function created in r218626 into a static
member of RTDyldMemoryManager (and rename to getSymbolAddressInProcess). The functionality this provides is very specific to RTDyldMemoryManager, so it makes sense to keep it in that class to avoid accidental re-use. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218741 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,8 +24,6 @@ namespace llvm {
|
||||
class ExecutionEngine;
|
||||
class ObjectImage;
|
||||
|
||||
uint64_t getSymbolAddress(const std::string &Name);
|
||||
|
||||
// RuntimeDyld clients often want to handle the memory management of
|
||||
// what gets placed where. For JIT clients, this is the subset of
|
||||
// JITMemoryManager required for dynamic loading of binaries.
|
||||
@@ -78,10 +76,14 @@ public:
|
||||
|
||||
virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size);
|
||||
|
||||
/// This method returns the address of the specified function or variable in
|
||||
/// the current process.
|
||||
static uint64_t getSymbolAddressInProcess(const std::string &Name);
|
||||
|
||||
/// This method returns the address of the specified function or variable.
|
||||
/// It is used to resolve symbols during module linking.
|
||||
virtual uint64_t getSymbolAddress(const std::string &Name) {
|
||||
return llvm::getSymbolAddress(Name);
|
||||
return getSymbolAddressInProcess(Name);
|
||||
}
|
||||
|
||||
/// This method returns the address of the specified function. As such it is
|
||||
|
Reference in New Issue
Block a user