diff options
author | Shuxin Yang <shuxin.llvm@gmail.com> | 2013-10-27 03:08:44 +0000 |
---|---|---|
committer | Shuxin Yang <shuxin.llvm@gmail.com> | 2013-10-27 03:08:44 +0000 |
commit | 2e1890e18bf84f2cb62d9e39525d7117bc79446b (patch) | |
tree | 64a9270ef3a3d6e59d97a98090bcab7a7ce106a6 /llvm/lib/Bitcode | |
parent | 6a8658ad61c5b06d19c30bfdcedf3d63902cec73 (diff) | |
download | bcm5719-llvm-2e1890e18bf84f2cb62d9e39525d7117bc79446b.tar.gz bcm5719-llvm-2e1890e18bf84f2cb62d9e39525d7117bc79446b.zip |
Revert r193251 : Use address-taken to disambiguate global variable and indirect memops.
llvm-svn: 193489
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 3fca4ab8e0d..e408cd1f981 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1848,9 +1848,6 @@ bool BitcodeReader::ParseModule(bool Resume) { new GlobalVariable(*TheModule, Ty, isConstant, Linkage, 0, "", 0, TLM, AddressSpace, ExternallyInitialized); NewGV->setAlignment(Alignment); - if (Record.size() > 10) - NewGV->setAddressMaybeTaken(Record[10]); - if (!Section.empty()) NewGV->setSection(Section); NewGV->setVisibility(Visibility); diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 4f631b98859..b082ba6bfd2 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -616,13 +616,11 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE, Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0); if (GV->isThreadLocal() || GV->getVisibility() != GlobalValue::DefaultVisibility || - GV->hasUnnamedAddr() || GV->isExternallyInitialized() || - !GV->AddressMaybeTaken()) { + GV->hasUnnamedAddr() || GV->isExternallyInitialized()) { Vals.push_back(getEncodedVisibility(GV)); Vals.push_back(getEncodedThreadLocalMode(GV)); Vals.push_back(GV->hasUnnamedAddr()); Vals.push_back(GV->isExternallyInitialized()); - Vals.push_back(GV->AddressMaybeTaken()); } else { AbbrevToUse = SimpleGVarAbbrev; } |