mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Add a convenience function for clearing the two global areas.
Patch contributed by Morten Ofsted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -93,6 +93,13 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 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
|
/// updateGlobalMapping - Replace an existing mapping for GV with a new
|
||||||
/// address. This updates both maps as required.
|
/// address. This updates both maps as required.
|
||||||
void updateGlobalMapping(const GlobalValue *GV, void *Addr) {
|
void updateGlobalMapping(const GlobalValue *GV, void *Addr) {
|
||||||
|
Reference in New Issue
Block a user