[llvm-commits] CVS: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
Reid Spencer
reid at x10sys.com
Mon Dec 13 08:22:43 PST 2004
Changes in directory llvm/include/llvm/ExecutionEngine:
ExecutionEngine.h updated: 1.30 -> 1.31
---
Log message:
Add a convenience function for clearing the two global areas.
Patch contributed by Morten Ofsted.
---
Diffs of the changes: (+7 -0)
Index: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
diff -u llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.30 llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.31
--- llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.30 Mon Nov 22 10:54:54 2004
+++ llvm/include/llvm/ExecutionEngine/ExecutionEngine.h Mon Dec 13 10:22:32 2004
@@ -93,6 +93,13 @@
}
}
+ /// clearAllGlobalMappings - Clear all global mappings and start over again
+ /// use in dynamic compilation scenarios when you want to move globals
+ void clearAllGlobalMappings() {
+ GlobalAddressMap.clear();
+ GlobalAddressReverseMap.clear();
+ }
+
/// updateGlobalMapping - Replace an existing mapping for GV with a new
/// address. This updates both maps as required.
void updateGlobalMapping(const GlobalValue *GV, void *Addr) {
More information about the llvm-commits
mailing list