diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-09 22:10:27 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-09 22:10:27 +0000 |
commit | c89d27a440370455336202b2a8f25eb9c73e67bc (patch) | |
tree | 351ff9e37997f9d3a55f8d5a16a1f07919217f99 /include | |
parent | 769b7f89534caed11d7595b5c84aa47d3de30ad9 (diff) |
ExecutionEngine::clearGlobalMappingsFromModule failed to remove reverse
mappings, which could cause errors and assert-failures. This patch fixes that,
adds a test, and refactors the global-mapping-removal code into a single place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 6a3a9144d5..cf2df6b832 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -61,6 +61,9 @@ public: getGlobalAddressReverseMap(const MutexGuard &) { return GlobalAddressReverseMap; } + + // Returns the address ToUnmap was mapped to. + void *RemoveMapping(const MutexGuard &, const GlobalValue *ToUnmap); }; |