diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-13 22:23:50 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-13 22:23:50 +0000 |
| commit | 071c69cd7c114409926c9bbc29233cc8ab19841f (patch) | |
| tree | 0832c731bf7c0bdce57e865efa744756d014fb6b | |
| parent | ba5be17e7d3d0404851c60483a04d3607e24a189 (diff) | |
| download | bcm5719-llvm-071c69cd7c114409926c9bbc29233cc8ab19841f.tar.gz bcm5719-llvm-071c69cd7c114409926c9bbc29233cc8ab19841f.zip | |
Skip the NAME field when forming tuples.
llvm-svn: 148147
| -rw-r--r-- | llvm/utils/TableGen/CodeGenRegisters.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenRegisters.cpp b/llvm/utils/TableGen/CodeGenRegisters.cpp index 26d0180b5c0..889acdd82aa 100644 --- a/llvm/utils/TableGen/CodeGenRegisters.cpp +++ b/llvm/utils/TableGen/CodeGenRegisters.cpp @@ -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)); |

