aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit40c57860dad429d3c938ed5f918c2c66f3b5fa72 (patch)
tree7e78a6745b18646f78f587f2f1d54ee14bd68ae3 /lib/CodeGen
parentb38a308616508e96f18f3bbd7914c8ed859a3b38 (diff)
downloadexternal_llvm-40c57860dad429d3c938ed5f918c2c66f3b5fa72.zip
external_llvm-40c57860dad429d3c938ed5f918c2c66f3b5fa72.tar.gz
external_llvm-40c57860dad429d3c938ed5f918c2c66f3b5fa72.tar.bz2
Factor out the printing of the leading tab into printInlineAsm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 4c4e0d3..43aaebf 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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) {