diff options
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index d224516..adc2b2f 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -93,6 +93,13 @@ public: } } + /// FIXME: I have no idea if this is right, I just implemented it to get + /// the build to compile because it is called by JIT/Emitter.cpp. + void updateGlobalMapping(const GlobalValue *GV, void*Addr) { + GlobalAddressMap[GV] = Addr; + GlobalAddressReverseMap[Addr] = GV; + } + /// getPointerToGlobalIfAvailable - This returns the address of the specified /// global value if it is available, otherwise it returns null. /// |