Factor out the printing of the leading tab into printInlineAsm.
authorDan Gohman <gohman@apple.com>
Fri, 6 Nov 2009 00:04:54 +0000 (00:04 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 6 Nov 2009 00:04:54 +0000 (00:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86199 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86MCInstLower.cpp

index 4c4e0d311b0b868a64c526e7fc13cd5fda4407b1..43aaebfe8645c9cf918ae9a72a28cbb5bafe146e 100644 (file)
@@ -1399,6 +1399,8 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
   // Disassemble the AsmStr, printing out the literal pieces, the operands, etc.
   const char *AsmStr = MI->getOperand(NumDefs).getSymbolName();
 
+  O << '\t';
+
   // If this asmstr is empty, just print the #APP/#NOAPP markers.
   // These are useful to see where empty asm's wound up.
   if (AsmStr[0] == 0) {
index 6cb3e9e4d1579d7e9206de6f8f147c0b6453cdde..4f9291c2c1737427912f032ce074171ad7212d63 100644 (file)
@@ -1349,7 +1349,6 @@ void ARMAsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI) {
     printKill(MI);
     return;
   case TargetInstrInfo::INLINEASM:
-    O << '\t';
     printInlineAsm(MI);
     return;
   case TargetInstrInfo::IMPLICIT_DEF:
index 11ac931b67a11b4d544279326e787c580f03a5db..22204038de2b7c09290f16e72e42120e9cf0276b 100644 (file)
@@ -309,7 +309,6 @@ void MSP430AsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI)
     printKill(MI);
     return;
   case TargetInstrInfo::INLINEASM:
-    O << '\t';
     printInlineAsm(MI);
     return;
   case TargetInstrInfo::IMPLICIT_DEF:
index 821cca42ed15b9985fbcfcb82a01e8b4b2ab6428..2734ed0bc12cc022931ed4b3db1eada5f2c03f4c 100644 (file)
@@ -405,7 +405,6 @@ void X86AsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI) {
     printLabel(MI);
     return;
   case TargetInstrInfo::INLINEASM:
-    O << '\t';
     printInlineAsm(MI);
     return;
   case TargetInstrInfo::IMPLICIT_DEF: