llvm.org GIT mirror llvm / d8a1728
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 Chris Lattner 13 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
26202620 assert(N->getExtTypes().size() == 1 && "Multiple types not handled!");
26212621 std::string CastType;
26222622 switch (N->getTypeNum(0)) {
2623 default: assert(0 && "Unknown type for constant node!");
2623 default:
2624 cerr << "Cannot handle " << getEnumName(N->getTypeNum(0))
2625 << " type as an immediate constant. Aborting\n";
2626 abort();
26242627 case MVT::i1: CastType = "bool"; break;
26252628 case MVT::i8: CastType = "unsigned char"; break;
26262629 case MVT::i16: CastType = "unsigned short"; break;