Export the register classes so that the instruction selector can get at them as needed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-08-06 21:47:14 +00:00
parent 6a80975505
commit 38aa542f36
4 changed files with 60 additions and 14 deletions
+5 -5
View File
@@ -10,11 +10,11 @@
NodeType::ArgResultTypes NodeType::Translate(Record *R) {
const std::string &Name = R->getName();
if (Name == "DNRT_void") return Void;
if (Name == "DNRT_val" || Name == "DNAT_val") return Val;
if (Name == "DNRT_arg0" || Name == "DNAT_arg0") return Arg0;
if (Name == "DNAT_ptr") return Ptr;
throw "Unknown DagNodeResult Type '" + Name + "'!";
if (Name == "DNVT_void") return Void;
if (Name == "DNVT_val" ) return Val;
if (Name == "DNVT_arg0") return Arg0;
if (Name == "DNVT_ptr" ) return Ptr;
throw "Unknown DagNodeValType '" + Name + "'!";
}