mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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:
parent
1232167ce3
commit
23510d36ac
@ -788,13 +788,10 @@ 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);
|
||||||
}
|
return 0;
|
||||||
else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// PadToColumn - This gets called every time a tab is emitted. If
|
/// PadToColumn - This gets called every time a tab is emitted. If
|
||||||
|
Loading…
Reference in New Issue
Block a user