1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Accept immediate as value of a dbg_value.

llvm-svn: 94489
This commit is contained in:
Dale Johannesen 2010-01-26 01:54:26 +00:00
parent c5e7f3d7f1
commit c9b61e3433

View File

@ -427,8 +427,9 @@ void X86AsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI) {
O << V.getName();
O << " <- ";
if (NOps==3) {
// Variable is in register
assert(MI->getOperand(0).getType()==MachineOperand::MO_Register);
// Register or immediate value
assert(MI->getOperand(0).getType()==MachineOperand::MO_Register ||
MI->getOperand(0).getType()==MachineOperand::MO_Immediate);
printOperand(MI, 0);
} else {
// Frame address. Currently handles register +- offset only.