[llvm-commits] [llvm] r51161 - /llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp

Dale Johannesen dalej at apple.com
Thu May 15 13:49:29 PDT 2008


Author: johannes
Date: Thu May 15 15:49:28 2008
New Revision: 51161

URL: http://llvm.org/viewvc/llvm-project?rev=51161&view=rev
Log:
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.


Modified:
    llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp

Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp?rev=51161&r1=51160&r2=51161&view=diff

==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Thu May 15 15:49:28 2008
@@ -353,7 +353,7 @@
                               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 {





More information about the llvm-commits mailing list