mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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
This commit is contained in:
@@ -353,7 +353,7 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
|
|||||||
Log2_32_Ceil(MaxGlobalType+1)));
|
Log2_32_Ceil(MaxGlobalType+1)));
|
||||||
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // Constant.
|
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // Constant.
|
||||||
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Initializer.
|
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.
|
if (MaxAlignment == 0) // Alignment.
|
||||||
Abbv->Add(BitCodeAbbrevOp(0));
|
Abbv->Add(BitCodeAbbrevOp(0));
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user