mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Skip the NAME field when forming tuples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -215,6 +215,9 @@ struct TupleExpander : SetTheory::Expander {
|
|||||||
for (unsigned i = 0, e = Proto->getValues().size(); i != e; ++i) {
|
for (unsigned i = 0, e = Proto->getValues().size(); i != e; ++i) {
|
||||||
RecordVal RV = Proto->getValues()[i];
|
RecordVal RV = Proto->getValues()[i];
|
||||||
|
|
||||||
|
if (RV.getName() == "NAME")
|
||||||
|
continue;
|
||||||
|
|
||||||
// Replace the sub-register list with Tuple.
|
// Replace the sub-register list with Tuple.
|
||||||
if (RV.getName() == "SubRegs")
|
if (RV.getName() == "SubRegs")
|
||||||
RV.setValue(ListInit::get(Tuple, RegisterRecTy));
|
RV.setValue(ListInit::get(Tuple, RegisterRecTy));
|
||||||
|
Reference in New Issue
Block a user