[llvm-commits] CVS: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h

Reid Spencer reid at x10sys.com
Mon Nov 22 04:38:49 PST 2004



Changes in directory llvm/include/llvm/ExecutionEngine:

ExecutionEngine.h updated: 1.28 -> 1.29
---
Log message:

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!


---
Diffs of the changes:  (+7 -0)

Index: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
diff -u llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.28 llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.29
--- llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.28	Sun Nov  7 17:58:02 2004
+++ llvm/include/llvm/ExecutionEngine/ExecutionEngine.h	Mon Nov 22 06:38:36 2004
@@ -93,6 +93,13 @@
     }
   }
 
+  /// 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.
   ///






More information about the llvm-commits mailing list