[llvm-commits] [llvm] r64267 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Dan Gohman
gohman at apple.com
Tue Feb 10 16:25:26 PST 2009
Author: djg
Date: Tue Feb 10 18:25:25 2009
New Revision: 64267
URL: http://llvm.org/viewvc/llvm-project?rev=64267&view=rev
Log:
Don't print extra spaces in vector and array constants. This makes
them visually more consistent with vector and array types.
Modified:
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=64267&r1=64266&r2=64267&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Tue Feb 10 18:25:25 2009
@@ -727,7 +727,6 @@
} else { // Cannot output in string format...
Out << '[';
if (CA->getNumOperands()) {
- Out << ' ';
printTypeInt(Out, ETy, TypeTable);
Out << ' ';
WriteAsOperandInternal(Out, CA->getOperand(0),
@@ -738,7 +737,6 @@
Out << ' ';
WriteAsOperandInternal(Out, CA->getOperand(i), TypeTable, Machine);
}
- Out << ' ';
}
Out << ']';
}
@@ -777,7 +775,7 @@
const Type *ETy = CP->getType()->getElementType();
assert(CP->getNumOperands() > 0 &&
"Number of operands for a PackedConst must be > 0");
- Out << "< ";
+ Out << '<';
printTypeInt(Out, ETy, TypeTable);
Out << ' ';
WriteAsOperandInternal(Out, CP->getOperand(0), TypeTable, Machine);
@@ -787,7 +785,7 @@
Out << ' ';
WriteAsOperandInternal(Out, CP->getOperand(i), TypeTable, Machine);
}
- Out << " >";
+ Out << '>';
return;
}
More information about the llvm-commits
mailing list