Allow an extra bit for CommonLinkage.
authorDale Johannesen <dalej@apple.com>
Thu, 15 May 2008 20:49:28 +0000 (20:49 +0000)
committerDale Johannesen <dalej@apple.com>
Thu, 15 May 2008 20:49:28 +0000 (20:49 +0000)
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

lib/Bitcode/Writer/BitcodeWriter.cpp

index 8e9a395ab6f0b8182d24bb301e404645854ab96f..ad651d36bf9e030e5b9444d6c76c54c517ede29d 100644 (file)
@@ -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 {