summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit2b3bc3042018314cf4f8c835e2677eed4c464ea7 (patch)
treeb259fbeef555ba8f88070f933efa6b0b51693416 /llvm/lib/CodeGen/AsmPrinter.cpp
parent67fa0521b6c5033bf11f1b22f81bbf76daabb9ea (diff)
downloadbcm5719-llvm-2b3bc3042018314cf4f8c835e2677eed4c464ea7.tar.gz
bcm5719-llvm-2b3bc3042018314cf4f8c835e2677eed4c464ea7.zip
Handle 'X' constraint in asm's better.
llvm-svn: 46485
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index 7c4a8e189dc..2b83588f9e3 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud