Skip the NAME field when forming tuples.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 13 Jan 2012 22:23:50 +0000 (22:23 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 13 Jan 2012 22:23:50 +0000 (22:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148147 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenRegisters.cpp

index 26d0180b5c0f86991c152c0e9cb63b29ec507f2f..889acdd82aa5b9376eb90adb31aca1a0ee007ac7 100644 (file)
@@ -215,6 +215,9 @@ struct TupleExpander : SetTheory::Expander {
       for (unsigned i = 0, e = Proto->getValues().size(); i != e; ++i) {
         RecordVal RV = Proto->getValues()[i];
 
+        if (RV.getName() == "NAME")
+          continue;
+
         // Replace the sub-register list with Tuple.
         if (RV.getName() == "SubRegs")
           RV.setValue(ListInit::get(Tuple, RegisterRecTy));