mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[TableGen] Use ListSeparator (NFC)
This commit is contained in:
parent
28da0778f7
commit
5067b3dd42
@ -131,10 +131,9 @@ void CallingConvEmitter::EmitAction(Record *Action,
|
|||||||
O << IndentStr << "static const MCPhysReg RegList" << ++Counter
|
O << IndentStr << "static const MCPhysReg RegList" << ++Counter
|
||||||
<< "[] = {\n";
|
<< "[] = {\n";
|
||||||
O << IndentStr << " ";
|
O << IndentStr << " ";
|
||||||
for (unsigned i = 0, e = RegList->size(); i != e; ++i) {
|
ListSeparator LS;
|
||||||
if (i != 0) O << ", ";
|
for (unsigned i = 0, e = RegList->size(); i != e; ++i)
|
||||||
O << getQualifiedName(RegList->getElementAsRecord(i));
|
O << LS << getQualifiedName(RegList->getElementAsRecord(i));
|
||||||
}
|
|
||||||
O << "\n" << IndentStr << "};\n";
|
O << "\n" << IndentStr << "};\n";
|
||||||
O << IndentStr << "if (unsigned Reg = State.AllocateReg(RegList"
|
O << IndentStr << "if (unsigned Reg = State.AllocateReg(RegList"
|
||||||
<< Counter << ")) {\n";
|
<< Counter << ")) {\n";
|
||||||
@ -162,19 +161,17 @@ void CallingConvEmitter::EmitAction(Record *Action,
|
|||||||
O << IndentStr << "static const MCPhysReg RegList" << RegListNumber
|
O << IndentStr << "static const MCPhysReg RegList" << RegListNumber
|
||||||
<< "[] = {\n";
|
<< "[] = {\n";
|
||||||
O << IndentStr << " ";
|
O << IndentStr << " ";
|
||||||
for (unsigned i = 0, e = RegList->size(); i != e; ++i) {
|
ListSeparator LS;
|
||||||
if (i != 0) O << ", ";
|
for (unsigned i = 0, e = RegList->size(); i != e; ++i)
|
||||||
O << getQualifiedName(RegList->getElementAsRecord(i));
|
O << LS << getQualifiedName(RegList->getElementAsRecord(i));
|
||||||
}
|
|
||||||
O << "\n" << IndentStr << "};\n";
|
O << "\n" << IndentStr << "};\n";
|
||||||
|
|
||||||
O << IndentStr << "static const MCPhysReg RegList"
|
O << IndentStr << "static const MCPhysReg RegList"
|
||||||
<< ShadowRegListNumber << "[] = {\n";
|
<< ShadowRegListNumber << "[] = {\n";
|
||||||
O << IndentStr << " ";
|
O << IndentStr << " ";
|
||||||
for (unsigned i = 0, e = ShadowRegList->size(); i != e; ++i) {
|
ListSeparator LSS;
|
||||||
if (i != 0) O << ", ";
|
for (unsigned i = 0, e = ShadowRegList->size(); i != e; ++i)
|
||||||
O << getQualifiedName(ShadowRegList->getElementAsRecord(i));
|
O << LSS << getQualifiedName(ShadowRegList->getElementAsRecord(i));
|
||||||
}
|
|
||||||
O << "\n" << IndentStr << "};\n";
|
O << "\n" << IndentStr << "};\n";
|
||||||
|
|
||||||
O << IndentStr << "if (unsigned Reg = State.AllocateReg(RegList"
|
O << IndentStr << "if (unsigned Reg = State.AllocateReg(RegList"
|
||||||
@ -220,10 +217,9 @@ void CallingConvEmitter::EmitAction(Record *Action,
|
|||||||
O << IndentStr << "static const MCPhysReg ShadowRegList"
|
O << IndentStr << "static const MCPhysReg ShadowRegList"
|
||||||
<< ShadowRegListNumber << "[] = {\n";
|
<< ShadowRegListNumber << "[] = {\n";
|
||||||
O << IndentStr << " ";
|
O << IndentStr << " ";
|
||||||
for (unsigned i = 0, e = ShadowRegList->size(); i != e; ++i) {
|
ListSeparator LS;
|
||||||
if (i != 0) O << ", ";
|
for (unsigned i = 0, e = ShadowRegList->size(); i != e; ++i)
|
||||||
O << getQualifiedName(ShadowRegList->getElementAsRecord(i));
|
O << LS << getQualifiedName(ShadowRegList->getElementAsRecord(i));
|
||||||
}
|
|
||||||
O << "\n" << IndentStr << "};\n";
|
O << "\n" << IndentStr << "};\n";
|
||||||
|
|
||||||
O << IndentStr << "unsigned Offset" << ++Counter
|
O << IndentStr << "unsigned Offset" << ++Counter
|
||||||
|
Loading…
Reference in New Issue
Block a user