mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 17:32:36 +00:00
use OutStreamer.EmitCodeAlignment for alignment in the text
segment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec167fd987
commit
2cce3712fa
@ -917,11 +917,10 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV,
|
|||||||
|
|
||||||
if (NumBits == 0) return; // No need to emit alignment.
|
if (NumBits == 0) return; // No need to emit alignment.
|
||||||
|
|
||||||
unsigned FillValue = 0;
|
|
||||||
if (getCurrentSection()->getKind().isText())
|
if (getCurrentSection()->getKind().isText())
|
||||||
FillValue = MAI->getTextAlignFillValue();
|
OutStreamer.EmitCodeAlignment(1 << NumBits);
|
||||||
|
else
|
||||||
OutStreamer.EmitValueToAlignment(1 << NumBits, FillValue, 1, 0);
|
OutStreamer.EmitValueToAlignment(1 << NumBits, 0, 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// LowerConstant - Lower the specified LLVM Constant to an MCExpr.
|
/// LowerConstant - Lower the specified LLVM Constant to an MCExpr.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user