mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78416 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -788,14 +788,11 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV,
|
|||||||
/// == 0 or MaxOperandLength == 0, return 0, meaning column alignment
|
/// == 0 or MaxOperandLength == 0, return 0, meaning column alignment
|
||||||
/// is disabled.
|
/// is disabled.
|
||||||
unsigned AsmPrinter::getOperandColumn(int operand) const {
|
unsigned AsmPrinter::getOperandColumn(int operand) const {
|
||||||
if (TAI->getFirstOperandColumn() > 0 && TAI->getMaxOperandLength() > 0) {
|
if (TAI->getFirstOperandColumn() > 0 && TAI->getMaxOperandLength() > 0)
|
||||||
return TAI->getFirstOperandColumn()
|
return TAI->getFirstOperandColumn() +
|
||||||
+ (TAI->getMaxOperandLength()+1)*(operand-1);
|
(TAI->getMaxOperandLength()+1)*(operand-1);
|
||||||
}
|
|
||||||
else {
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// PadToColumn - This gets called every time a tab is emitted. If
|
/// PadToColumn - This gets called every time a tab is emitted. If
|
||||||
/// column padding is turned on, we replace the tab with the
|
/// column padding is turned on, we replace the tab with the
|
||||||
|
Reference in New Issue
Block a user