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 | 794481d5ca75c1e614625f8a9487b8fa9db9d4d8 (patch) | |
tree | c16ce1aa7767209f38faae0205e1c2d55a27832b /utils | |
parent | 23d1c5ce8ab0ec52dc56073a60dbfb80f2c4c1e6 (diff) | |
download | external_llvm-794481d5ca75c1e614625f8a9487b8fa9db9d4d8.zip external_llvm-794481d5ca75c1e614625f8a9487b8fa9db9d4d8.tar.gz external_llvm-794481d5ca75c1e614625f8a9487b8fa9db9d4d8.tar.bz2 |
Skip the NAME field when forming tuples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenRegisters.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenRegisters.cpp b/utils/TableGen/CodeGenRegisters.cpp index 26d0180..889acdd 100644 --- a/utils/TableGen/CodeGenRegisters.cpp +++ b/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)); |