summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-13 22:23:50 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-13 22:23:50 +0000
commit071c69cd7c114409926c9bbc29233cc8ab19841f (patch)
tree0832c731bf7c0bdce57e865efa744756d014fb6b
parentba5be17e7d3d0404851c60483a04d3607e24a189 (diff)
downloadbcm5719-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.cpp3
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));
OpenPOWER on IntegriCloud