summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-22 12:38:36 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-22 12:38:36 +0000
commitc1d035a8818058461d776fc0ffb9cdbfa4cfccd3 (patch)
treeb055d042bf22dc48a8a3e23a3622ced5185cce83 /include
parent9ffcf9fdddf6e11ed59a70d440408d305a42436d (diff)
downloadllvm-c1d035a8818058461d776fc0ffb9cdbfa4cfccd3.tar.gz
llvm-c1d035a8818058461d776fc0ffb9cdbfa4cfccd3.tar.bz2
llvm-c1d035a8818058461d776fc0ffb9cdbfa4cfccd3.tar.xz
Implement a missing function called by JIT/Emitter.cpp but never defined.
NOTE: Its not clear that this implementation is correct. CHRIS: Please review this! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index d2245165a9..adc2b2f5c7 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.
///