diff options
author | Dale Johannesen <dalej@apple.com> | 2008-01-29 02:21:21 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-01-29 02:21:21 +0000 |
commit | ba2a0b960ea4c73d0f81557f63ae2ea126e08905 (patch) | |
tree | 3ab167b8e5d8524ae45f40e970d4c772cbb73da2 /lib/CodeGen/AsmPrinter.cpp | |
parent | c840da14c61ef336a530af8811a7268fccf3bd75 (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.cpp | 5 |
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; } |