Remove special case hacks

llvm-svn: 15643
This commit is contained in:
Chris Lattner 2004-08-11 01:53:58 +00:00
parent 6bd2d26b56
commit 101f3fea82
1 changed files with 2 additions and 8 deletions

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!";