[llvm-commits] [llvm] r40593 - /llvm/trunk/lib/CodeGen/AsmPrinter.cpp

Dan Gohman djg at cray.com
Mon Jul 30 08:06:26 PDT 2007


Author: djg
Date: Mon Jul 30 10:06:25 2007
New Revision: 40593

URL: http://llvm.org/viewvc/llvm-project?rev=40593&view=rev
Log:
Print a space between the comment character and the basic block name,
for prettiness.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter.cpp?rev=40593&r1=40592&r2=40593&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter.cpp Mon Jul 30 10:06:25 2007
@@ -1144,7 +1144,8 @@
   if (printColon)
     O << ':';
   if (printComment && MBB->getBasicBlock())
-    O << '\t' << TAI->getCommentString() << MBB->getBasicBlock()->getName();
+    O << '\t' << TAI->getCommentString() << ' '
+      << MBB->getBasicBlock()->getName();
 }
 
 /// printSetLabel - This method prints a set label for the specified





More information about the llvm-commits mailing list