summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-09-10 18:51:56 +0000
committerBill Wendling <isanbard@gmail.com>2010-09-10 18:51:56 +0000
commite26fffc597002c5fcc8e352a5886253da5c9fe7e (patch)
tree025131db25b38e0ef19daffa2be5513b5982e5b3 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent099600312607567b3f24efbfb9de3b825fd5704e (diff)
downloadbcm5719-llvm-e26fffc597002c5fcc8e352a5886253da5c9fe7e.tar.gz
bcm5719-llvm-e26fffc597002c5fcc8e352a5886253da5c9fe7e.zip
Auto-upgrade the magic ".llvm.eh.catch.all.value" global to
"llvm.eh.catch.all.value". Only the name needs to be changed. llvm-svn: 113600
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 02b1fb0e6b4..74b8e40a18d 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud