Remove special case hacks

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-08-11 01:53:58 +00:00
parent 52d2f14b3e
commit 552a8428fa

View File

@ -138,14 +138,8 @@ CodeGenInstruction::CodeGenInstruction(Record *R) : TheDef(R) {
MVT::ValueType Ty;
if (Rec->isSubClassOf("RegisterClass"))
Ty = getValueType(Rec->getValueAsDef("RegType"));
else if (Rec->getName() == "i8imm")
Ty = MVT::i8;
else if (Rec->getName() == "i16imm")
Ty = MVT::i16;
else if (Rec->getName() == "i32imm")
Ty = MVT::i32;
else if (Rec->getName() == "i64imm")
Ty = MVT::i64;
else if (Rec->isSubClassOf("Operand"))
Ty = getValueType(Rec->getValueAsDef("Type"));
else
throw "Unknown operand class '" + Rec->getName() +
"' in instruction '" + R->getName() + "' instruction!";