diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-02-05 05:57:38 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-02-05 05:57:38 +0000 |
commit | 27e7ef326ab25027c74638bc33aaff7429527573 (patch) | |
tree | 9d36f48c58765f649cf3eba6a97370c22d3aabd9 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 9ca910111c4bd3f3c4dac79beca65fe77661e84c (diff) | |
download | bcm5719-llvm-27e7ef326ab25027c74638bc33aaff7429527573.tar.gz bcm5719-llvm-27e7ef326ab25027c74638bc33aaff7429527573.zip |
Added LLVM Asm/Bitcode Reader/Writer support for new IR keyword externally_initialized.
llvm-svn: 174340
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index c6d0371de70..74bbaf2f874 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -514,10 +514,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->hasUnnamedAddr() || GV->isExternallyInitialized()) { Vals.push_back(getEncodedVisibility(GV)); Vals.push_back(getEncodedThreadLocalMode(GV)); Vals.push_back(GV->hasUnnamedAddr()); + Vals.push_back(GV->isExternallyInitialized()); } else { AbbrevToUse = SimpleGVarAbbrev; } |