mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Print undefined/unknown debug value as "undef".
llvm-svn: 107818
This commit is contained in:
parent
a88ae239b8
commit
82ccfed750
@ -505,7 +505,12 @@ void X86AsmPrinter::PrintDebugValueComment(const MachineInstr *MI,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user