Simplify this code and avoid an extra space character in the output.
authorDan Gohman <gohman@apple.com>
Fri, 30 Oct 2009 02:01:10 +0000 (02:01 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 30 Oct 2009 02:01:10 +0000 (02:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85568 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 2a25841b39e5c2a869cd5ca37f0c99c39b2317d8..9a803a16628094a2482ad0cba72162836a75efd1 100644 (file)
@@ -1859,8 +1859,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
     // Special case indirectbr instruction to get formatting nice and correct.
     Out << ' ';
     writeOperand(Operand, true);
-    Out << ", ";
-    Out << " [";
+    Out << ", [";
     
     for (unsigned i = 1, e = I.getNumOperands(); i != e; ++i) {
       if (i != 1)