summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit100602d7561ca5e245db6194bddae86357d203d4 (patch)
treee9b3913202212b4b69c87b5c43605b411df9e02e /llvm
parent856228f42ec623283359e3f8fdce62055d530f10 (diff)
downloadbcm5719-llvm-100602d7561ca5e245db6194bddae86357d203d4.tar.gz
bcm5719-llvm-100602d7561ca5e245db6194bddae86357d203d4.zip
Make tblgen error more useful. Patch by B. Scott Michel
llvm-svn: 33295
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 08ac808833f..fbd0a9660ba 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud