summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-17 07:45:12 +0000
committerChris Lattner <sabre@nondot.org>2007-01-17 07:45:12 +0000
commitd8a1728b5a9506deb45a62b7b7d8cc93578eac53 (patch)
treee9ff0476efbfd8a0a3f47b69b28e5c1d21a42775 /utils
parentc49e1eb8cc5fc1effebf1863acd78889fad0aa32 (diff)
downloadllvm-d8a1728b5a9506deb45a62b7b7d8cc93578eac53.tar.gz
llvm-d8a1728b5a9506deb45a62b7b7d8cc93578eac53.tar.bz2
llvm-d8a1728b5a9506deb45a62b7b7d8cc93578eac53.tar.xz
Make tblgen error more useful. Patch by B. Scott Michel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 08ac808833..fbd0a9660b 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -2621,7 +2621,10 @@ public:
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;