[llvm-commits] [llvm] r107818 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp
Devang Patel
dpatel at apple.com
Wed Jul 7 14:52:21 PDT 2010
Author: dpatel
Date: Wed Jul 7 16:52:21 2010
New Revision: 107818
URL: http://llvm.org/viewvc/llvm-project?rev=107818&view=rev
Log:
Print undefined/unknown debug value as "undef".
Modified:
llvm/trunk/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp?rev=107818&r1=107817&r2=107818&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp Wed Jul 7 16:52:21 2010
@@ -505,7 +505,12 @@
O << V.getName();
O << " <- ";
// Frame address. Currently handles register +- offset only.
- O << '['; printOperand(MI, 0, O); O << '+'; printOperand(MI, 3, O);
+ O << '[';
+ if (MI->getOperand(0).isReg() && MI->getOperand(0).getReg())
+ printOperand(MI, 0, O);
+ else
+ O << "undef";
+ O << '+'; printOperand(MI, 3, O);
O << ']';
O << "+";
printOperand(MI, NOps-2, O);
More information about the llvm-commits
mailing list