git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78416 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-08-07 22:26:50 +00:00
parent 1232167ce3
commit 23510d36ac

View File

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