diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-09-10 18:51:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-09-10 18:51:56 +0000 |
commit | de49f360ec4780acb382a3ae923d1716fdb0dc03 (patch) | |
tree | 7a4af7e6a1aa5127e26a225a34806cdd84f7056e /lib/Bitcode | |
parent | 979927ab26a1832ee2ecd1edb17d50184756f474 (diff) | |
download | external_llvm-de49f360ec4780acb382a3ae923d1716fdb0dc03.zip external_llvm-de49f360ec4780acb382a3ae923d1716fdb0dc03.tar.gz external_llvm-de49f360ec4780acb382a3ae923d1716fdb0dc03.tar.bz2 |
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
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 02b1fb0..74b8e40 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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); |