mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Print undefined/unknown debug value as "undef".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107818 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -505,7 +505,12 @@ void X86AsmPrinter::PrintDebugValueComment(const MachineInstr *MI,
|
|||||||
O << V.getName();
|
O << V.getName();
|
||||||
O << " <- ";
|
O << " <- ";
|
||||||
// Frame address. Currently handles register +- offset only.
|
// 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 << ']';
|
||||||
O << "+";
|
O << "+";
|
||||||
printOperand(MI, NOps-2, O);
|
printOperand(MI, NOps-2, O);
|
||||||
|
Reference in New Issue
Block a user