diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-23 22:52:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-23 22:52:27 +0000 |
commit | ab49ee752ec37f586e45c999eca1e29e32697cb7 (patch) | |
tree | 1958a18e1ef111f43d7cf8be61391ef12317433f /lib/VMCore/AsmWriter.cpp | |
parent | 7353404303d84169bb8f422698949be79957eb1a (diff) |
minor cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index ee73d7225c..cd7b8a675d 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1505,7 +1505,7 @@ void AssemblyWriter::printInfoComment(const Value &V) { 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 @@ void AssemblyWriter::printInstruction(const Instruction &I) { // 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 @@ void AssemblyWriter::printInstruction(const Instruction &I) { } 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 @@ void AssemblyWriter::printInstruction(const Instruction &I) { } printInfoComment(I); - Out << "\n"; + Out << '\n'; } |