mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Auto-upgrade the magic ".llvm.eh.catch.all.value" global to
"llvm.eh.catch.all.value". Only the name needs to be changed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113600 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1288,6 +1288,12 @@ bool BitcodeReader::ParseModule() {
|
||||
UpgradedIntrinsics.push_back(std::make_pair(FI, NewFn));
|
||||
}
|
||||
|
||||
// Look for global variables which need to be renamed.
|
||||
for (Module::global_iterator
|
||||
GI = TheModule->global_begin(), GE = TheModule->global_end();
|
||||
GI != GE; ++GI)
|
||||
UpgradeGlobalVariable(GI);
|
||||
|
||||
// Force deallocation of memory for these vectors to favor the client that
|
||||
// want lazy deserialization.
|
||||
std::vector<std::pair<GlobalVariable*, unsigned> >().swap(GlobalInits);
|
||||
|
Reference in New Issue
Block a user