summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2013-10-27 03:08:44 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2013-10-27 03:08:44 +0000
commit2e1890e18bf84f2cb62d9e39525d7117bc79446b (patch)
tree64a9270ef3a3d6e59d97a98090bcab7a7ce106a6 /llvm/lib/Bitcode/Writer
parent6a8658ad61c5b06d19c30bfdcedf3d63902cec73 (diff)
downloadbcm5719-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/Writer')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp4
1 files changed, 1 insertions, 3 deletions
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;
}
OpenPOWER on IntegriCloud