From: Chris Lattner Date: Wed, 17 Jan 2007 07:45:12 +0000 (+0000) Subject: Make tblgen error more useful. Patch by B. Scott Michel X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d8a1728b5a9506deb45a62b7b7d8cc93578eac53;p=oota-llvm.git 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 --- diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 08ac808833f..fbd0a9660ba 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;