[llvm-commits] [llvm] r55267 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Chris Lattner
sabre at nondot.org
Sat Aug 23 15:52:29 PDT 2008
Author: lattner
Date: Sat Aug 23 17:52:27 2008
New Revision: 55267
URL: http://llvm.org/viewvc/llvm-project?rev=55267&view=rev
Log:
minor cleanups.
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=55267&r1=55266&r2=55267&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Sat Aug 23 17:52:27 2008
@@ -1505,7 +1505,7 @@
void AssemblyWriter::printInstruction(const Instruction &I) {
if (AnnotationWriter) AnnotationWriter->emitInstructionAnnot(&I, Out);
- Out << "\t";
+ Out << '\t';
// Print out name if it exists...
if (I.hasName()) {
@@ -1527,7 +1527,7 @@
// Print out the compare instruction predicates
if (const CmpInst *CI = dyn_cast<CmpInst>(&I))
- Out << " " << getPredicateText(CI->getPredicate());
+ Out << ' ' << getPredicateText(CI->getPredicate());
// Print out the type of the operands...
const Value *Operand = I.getNumOperands() ? I.getOperand(0) : 0;
@@ -1542,12 +1542,15 @@
} else if (isa<SwitchInst>(I)) {
// Special case switch statement to get formatting nice and correct...
- writeOperand(Operand , true); Out << ',';
- writeOperand(I.getOperand(1), true); Out << " [";
+ writeOperand(Operand , true);
+ Out << ',';
+ writeOperand(I.getOperand(1), true);
+ Out << " [";
for (unsigned op = 2, Eop = I.getNumOperands(); op < Eop; op += 2) {
Out << "\n\t\t";
- writeOperand(I.getOperand(op ), true); Out << ',';
+ writeOperand(I.getOperand(op ), true);
+ Out << ',';
writeOperand(I.getOperand(op+1), true);
}
Out << "\n\t]";
@@ -1715,7 +1718,7 @@
}
printInfoComment(I);
- Out << "\n";
+ Out << '\n';
}
More information about the llvm-commits
mailing list