[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp X86SimpInstrSelector.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 14 19:14:34 PDT 2004
Changes in directory llvm/lib/Target/X86:
InstSelectSimple.cpp updated: 1.270 -> 1.271
X86SimpInstrSelector.cpp updated: 1.5 -> 1.6
---
Log message:
Patches towards fixing PR341: http://llvm.cs.uiuc.edu/PR341
---
Diffs of the changes: (+4 -4)
Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.270 llvm/lib/Target/X86/InstSelectSimple.cpp:1.271
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.270 Wed Jul 14 19:58:53 2004
+++ llvm/lib/Target/X86/InstSelectSimple.cpp Wed Jul 14 21:14:23 2004
@@ -507,7 +507,7 @@
return;
default:
- std::cerr << "Offending expr: " << C << "\n";
+ std::cerr << "Offending expr: " << *C << "\n";
assert(0 && "Constant expression not yet handled!\n");
}
}
@@ -557,7 +557,7 @@
} else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(C)) {
BuildMI(*MBB, IP, X86::MOV32ri, 1, R).addGlobalAddress(CPR->getValue());
} else {
- std::cerr << "Offending constant: " << C << "\n";
+ std::cerr << "Offending constant: " << *C << "\n";
assert(0 && "Type not handled yet!");
}
}
Index: llvm/lib/Target/X86/X86SimpInstrSelector.cpp
diff -u llvm/lib/Target/X86/X86SimpInstrSelector.cpp:1.5 llvm/lib/Target/X86/X86SimpInstrSelector.cpp:1.6
--- llvm/lib/Target/X86/X86SimpInstrSelector.cpp:1.5 Sun Jun 20 02:47:25 2004
+++ llvm/lib/Target/X86/X86SimpInstrSelector.cpp Wed Jul 14 21:14:24 2004
@@ -433,7 +433,7 @@
return;
default:
- std::cerr << "Offending expr: " << C << "\n";
+ std::cerr << "Offending expr: " << *C << "\n";
assert(0 && "Constant expression not yet handled!\n");
}
}
@@ -483,7 +483,7 @@
} else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(C)) {
BuildMI(*MBB, IP, X86::MOV32ri, 1, R).addGlobalAddress(CPR->getValue());
} else {
- std::cerr << "Offending constant: " << C << "\n";
+ std::cerr << "Offending constant: " << *C << "\n";
assert(0 && "Type not handled yet!");
}
}
More information about the llvm-commits
mailing list