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

Chris Lattner clattner at apple.com
Thu May 15 20:07:57 PDT 2008


On May 15, 2008, at 1:49 PM, Dale Johannesen wrote:

> 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.

Yep, this should work just fine, thanks Dale,

-Chris

>
>
>
> 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 {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list