Remvoe use of MO.isVirtualRegister(), turn an assertion into an assert()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-10 20:47:24 +00:00
parent 9f42dd5472
commit ebcd7941f0

View File

@ -594,11 +594,9 @@ int64_t SparcV9CodeEmitter::getMachineOpValue(MachineInstr &MI,
MachineOperand &MO) { MachineOperand &MO) {
int64_t rv = 0; // Return value; defaults to 0 for unhandled cases int64_t rv = 0; // Return value; defaults to 0 for unhandled cases
// or things that get fixed up later by the JIT. // or things that get fixed up later by the JIT.
assert(MO.getType() != MachineOperand::MO_VirtualRegister &&
if (MO.isVirtualRegister()) { "ERROR: virtual register found in machine code.");
std::cerr << "ERROR: virtual register found in machine code.\n"; if (MO.isPCRelativeDisp()) {
abort();
} else if (MO.isPCRelativeDisp()) {
DEBUG(std::cerr << "PCRelativeDisp: "); DEBUG(std::cerr << "PCRelativeDisp: ");
Value *V = MO.getVRegValue(); Value *V = MO.getVRegValue();
if (BasicBlock *BB = dyn_cast<BasicBlock>(V)) { if (BasicBlock *BB = dyn_cast<BasicBlock>(V)) {