aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-07 22:26:50 +0000
committerChris Lattner <sabre@nondot.org>2009-08-07 22:26:50 +0000
commit23510d36ac5af80f7a47df64b4614b54d6a078c9 (patch)
treedb45257e7a8780329c35eefc34b6a79513324776
parent1232167ce3c6efbdc5647ebaa23863a3157e36e3 (diff)
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78416 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index ec62822e62..15b3a6dc4d 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -788,13 +788,10 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV,
/// == 0 or MaxOperandLength == 0, return 0, meaning column alignment
/// is disabled.
unsigned AsmPrinter::getOperandColumn(int operand) const {
- if (TAI->getFirstOperandColumn() > 0 && TAI->getMaxOperandLength() > 0) {
- return TAI->getFirstOperandColumn()
- + (TAI->getMaxOperandLength()+1)*(operand-1);
- }
- else {
- return 0;
- }
+ if (TAI->getFirstOperandColumn() > 0 && TAI->getMaxOperandLength() > 0)
+ return TAI->getFirstOperandColumn() +
+ (TAI->getMaxOperandLength()+1)*(operand-1);
+ return 0;
}
/// PadToColumn - This gets called every time a tab is emitted. If