Support printing constant pool indices.

If we see an "unknown operand", abort so it's easier to fix it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2004-06-27 22:50:44 +00:00
parent ec3227fe39
commit 8a0ae9e9ca
2 changed files with 8 additions and 2 deletions

View File

@ -412,8 +412,11 @@ void V8Printer::printOperand(const MachineInstr *MI, int opNum) {
case MachineOperand::MO_ExternalSymbol:
O << MO.getSymbolName();
break;
case MachineOperand::MO_ConstantPoolIndex:
O << ".CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
break;
default:
O << "<unknown operand type>"; break;
O << "<unknown operand type>"; abort (); break;
}
if (CloseParen) O << ")";
}

View File

@ -412,8 +412,11 @@ void V8Printer::printOperand(const MachineInstr *MI, int opNum) {
case MachineOperand::MO_ExternalSymbol:
O << MO.getSymbolName();
break;
case MachineOperand::MO_ConstantPoolIndex:
O << ".CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
break;
default:
O << "<unknown operand type>"; break;
O << "<unknown operand type>"; abort (); break;
}
if (CloseParen) O << ")";
}