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 | a2de37c897556fbd1f94a3ed84ad27accd8f8deb (patch) | |
tree | af34d39baab0faa1b905d84b643c765f734e9aed /lib/Bitcode/Writer | |
parent | 91b978e15774039f991cf91048dc4cc74726744b (diff) | |
download | external_llvm-a2de37c897556fbd1f94a3ed84ad27accd8f8deb.zip external_llvm-a2de37c897556fbd1f94a3ed84ad27accd8f8deb.tar.gz external_llvm-a2de37c897556fbd1f94a3ed84ad27accd8f8deb.tar.bz2 |
Added LLVM Asm/Bitcode Reader/Writer support for new IR keyword externally_initialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
-rw-r--r-- | lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index c6d0371..74bbaf2 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/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; } |