Implement a missing function called by JIT/Emitter.cpp but never defined.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 22 Nov 2004 12:38:36 +0000 (12:38 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 22 Nov 2004 12:38:36 +0000 (12:38 +0000)
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

include/llvm/ExecutionEngine/ExecutionEngine.h

index d2245165a9e1acd5921b0e96b83949f65f3a7822..adc2b2f5c774e8a010939a848ffbac0bf4b882a1 100644 (file)
@@ -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.
   ///