aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ExecutionEngine/ExecutionEngine.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-04 04:47:41 +0000
committerChris Lattner <sabre@nondot.org>2008-04-04 04:47:41 +0000
commitf4cc3096fd893cdef5b5c2664ebff8c13a07ad51 (patch)
tree3376e99ece7c0a3e4e776d878416daeef6b07e29 /include/llvm/ExecutionEngine/ExecutionEngine.h
parentfc5423d561bb7624bf328e3ed554efce6e296cbc (diff)
downloadexternal_llvm-f4cc3096fd893cdef5b5c2664ebff8c13a07ad51.zip
external_llvm-f4cc3096fd893cdef5b5c2664ebff8c13a07ad51.tar.gz
external_llvm-f4cc3096fd893cdef5b5c2664ebff8c13a07ad51.tar.bz2
Make ExecutionEngine::updateGlobalMapping return the old mapping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine/ExecutionEngine.h')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index 461efe3..1a6cdba 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -96,9 +96,9 @@ public:
/// any of those classes.
sys::Mutex lock; // Used to make this class and subclasses thread-safe
- //===----------------------------------------------------------------------===//
+ //===--------------------------------------------------------------------===//
// ExecutionEngine Startup
- //===----------------------------------------------------------------------===//
+ //===--------------------------------------------------------------------===//
virtual ~ExecutionEngine();
@@ -176,8 +176,9 @@ public:
/// updateGlobalMapping - Replace an existing mapping for GV with a new
/// address. This updates both maps as required. If "Addr" is null, the
- /// entry for the global is removed from the mappings.
- void updateGlobalMapping(const GlobalValue *GV, void *Addr);
+ /// entry for the global is removed from the mappings. This returns the old
+ /// value of the pointer, or null if it was not in the map.
+ void *updateGlobalMapping(const GlobalValue *GV, void *Addr);
/// getPointerToGlobalIfAvailable - This returns the address of the specified
/// global value if it is has already been codegen'd, otherwise it returns
@@ -211,7 +212,8 @@ public:
const GlobalValue *getGlobalValueAtAddress(void *Addr);
- void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr, const Type *Ty);
+ void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr,
+ const Type *Ty);
void InitializeMemory(const Constant *Init, void *Addr);
/// recompileAndRelinkFunction - This method is used to force a function