aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-05-15 20:49:28 +0000
committerDale Johannesen <dalej@apple.com>2008-05-15 20:49:28 +0000
commitd75a89e6fda05545b9cb18f1c00f8464b085347c (patch)
tree7a3783b30712e832f0d2c4b8985e6d4db7d2785e /lib
parent17c39753aef7e13d8d52590b38cb60ef16049dd9 (diff)
downloadexternal_llvm-d75a89e6fda05545b9cb18f1c00f8464b085347c.zip
external_llvm-d75a89e6fda05545b9cb18f1c00f8464b085347c.tar.gz
external_llvm-d75a89e6fda05545b9cb18f1c00f8464b085347c.tar.bz2
Allow an extra bit for CommonLinkage.
This changes the .bc file format, but if I understand how it works correctly, old .bc files continue to be readable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index 8e9a395..ad651d3 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -353,7 +353,7 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
Log2_32_Ceil(MaxGlobalType+1)));
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // Constant.
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Initializer.
- Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 3)); // Linkage.
+ Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 4)); // Linkage.
if (MaxAlignment == 0) // Alignment.
Abbv->Add(BitCodeAbbrevOp(0));
else {