[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 16 23:45:28 PST 2007
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.289 -> 1.290
---
Log message:
Make tblgen error more useful. Patch by B. Scott Michel
---
Diffs of the changes: (+4 -1)
DAGISelEmitter.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.289 llvm/utils/TableGen/DAGISelEmitter.cpp:1.290
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.289 Thu Dec 7 16:21:48 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Wed Jan 17 01:45:12 2007
@@ -2621,7 +2621,10 @@
assert(N->getExtTypes().size() == 1 && "Multiple types not handled!");
std::string CastType;
switch (N->getTypeNum(0)) {
- default: assert(0 && "Unknown type for constant node!");
+ default:
+ cerr << "Cannot handle " << getEnumName(N->getTypeNum(0))
+ << " type as an immediate constant. Aborting\n";
+ abort();
case MVT::i1: CastType = "bool"; break;
case MVT::i8: CastType = "unsigned char"; break;
case MVT::i16: CastType = "unsigned short"; break;
More information about the llvm-commits
mailing list