mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
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
This commit is contained in:
@ -61,6 +61,9 @@ public:
|
||||
getGlobalAddressReverseMap(const MutexGuard &) {
|
||||
return GlobalAddressReverseMap;
|
||||
}
|
||||
|
||||
// Returns the address ToUnmap was mapped to.
|
||||
void *RemoveMapping(const MutexGuard &, const GlobalValue *ToUnmap);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user