diff options
author | Dale Johannesen <dalej@apple.com> | 2008-05-15 20:49:28 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-05-15 20:49:28 +0000 |
commit | 6667646a568295f4cae79cf0aa32547c8558188f (patch) | |
tree | 7a3783b30712e832f0d2c4b8985e6d4db7d2785e /lib/Bitcode | |
parent | b434513a20c2df00b8c1cceb4858786fc9baad9e (diff) | |
download | external_llvm-6667646a568295f4cae79cf0aa32547c8558188f.zip external_llvm-6667646a568295f4cae79cf0aa32547c8558188f.tar.gz external_llvm-6667646a568295f4cae79cf0aa32547c8558188f.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/Bitcode')
-rw-r--r-- | lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
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 { |