mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
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
This commit is contained in:
parent
c49e1eb8cc
commit
d8a1728b5a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user