[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 10 14:48:02 PST 2004
Changes in directory llvm/lib/Target/Sparc:
SparcV9CodeEmitter.cpp updated: 1.50 -> 1.51
---
Log message:
Remvoe use of MO.isVirtualRegister(), turn an assertion into an assert()
---
Diffs of the changes: (+3 -5)
Index: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
diff -u llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.50 llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.51
--- llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.50 Tue Feb 10 14:35:42 2004
+++ llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp Tue Feb 10 14:47:24 2004
@@ -594,11 +594,9 @@
MachineOperand &MO) {
int64_t rv = 0; // Return value; defaults to 0 for unhandled cases
// or things that get fixed up later by the JIT.
-
- if (MO.isVirtualRegister()) {
- std::cerr << "ERROR: virtual register found in machine code.\n";
- abort();
- } else if (MO.isPCRelativeDisp()) {
+ assert(MO.getType() != MachineOperand::MO_VirtualRegister &&
+ "ERROR: virtual register found in machine code.");
+ if (MO.isPCRelativeDisp()) {
DEBUG(std::cerr << "PCRelativeDisp: ");
Value *V = MO.getVRegValue();
if (BasicBlock *BB = dyn_cast<BasicBlock>(V)) {
More information about the llvm-commits
mailing list