aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-01-29 02:21:21 +0000
committerDale Johannesen <dalej@apple.com>2008-01-29 02:21:21 +0000
commitba2a0b960ea4c73d0f81557f63ae2ea126e08905 (patch)
tree3ab167b8e5d8524ae45f40e970d4c772cbb73da2 /lib/CodeGen/AsmPrinter.cpp
parentc840da14c61ef336a530af8811a7268fccf3bd75 (diff)
Handle 'X' constraint in asm's better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 7c4a8e189d..2b83588f9e 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -1108,9 +1108,10 @@ 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();
- // If this asmstr is empty, don't bother printing the #APP/#NOAPP markers.
+ // 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) {
- O << "\n"; // Tab already printed, avoid double indenting next instr.
+ O << TAI->getInlineAsmStart() << "\n\t" << TAI->getInlineAsmEnd() << "\n";
return;
}