summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-06 00:04:54 +0000
committerDan Gohman <gohman@apple.com>2009-11-06 00:04:54 +0000
commitee8afcc59d2fcbb7df645864e7d5acc894596f2f (patch)
tree7047e7134d27a2cc0f75d2c91643749aafe98fcb /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent67916399105876fd584c9669d026d4d8a37ab2a6 (diff)
downloadbcm5719-llvm-ee8afcc59d2fcbb7df645864e7d5acc894596f2f.tar.gz
bcm5719-llvm-ee8afcc59d2fcbb7df645864e7d5acc894596f2f.zip
Factor out the printing of the leading tab into printInlineAsm.
llvm-svn: 86199
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 4c4e0d311b0..43aaebfe864 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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) {
OpenPOWER on IntegriCloud