mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 16:22:41 +00:00
[TableGen] Simplify CallingConvEmitter.cpp. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315911 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3cf64e346f
commit
09c266d124
@ -39,21 +39,21 @@ void CallingConvEmitter::run(raw_ostream &O) {
|
||||
|
||||
// Emit prototypes for all of the non-custom CC's so that they can forward ref
|
||||
// each other.
|
||||
for (unsigned i = 0, e = CCs.size(); i != e; ++i) {
|
||||
if (!CCs[i]->getValueAsBit("Custom")) {
|
||||
O << "static bool " << CCs[i]->getName()
|
||||
for (Record *CC : CCs) {
|
||||
if (!CC->getValueAsBit("Custom")) {
|
||||
O << "static bool " << CC->getName()
|
||||
<< "(unsigned ValNo, MVT ValVT,\n"
|
||||
<< std::string(CCs[i]->getName().size() + 13, ' ')
|
||||
<< std::string(CC->getName().size() + 13, ' ')
|
||||
<< "MVT LocVT, CCValAssign::LocInfo LocInfo,\n"
|
||||
<< std::string(CCs[i]->getName().size() + 13, ' ')
|
||||
<< std::string(CC->getName().size() + 13, ' ')
|
||||
<< "ISD::ArgFlagsTy ArgFlags, CCState &State);\n";
|
||||
}
|
||||
}
|
||||
|
||||
// Emit each non-custom calling convention description in full.
|
||||
for (unsigned i = 0, e = CCs.size(); i != e; ++i) {
|
||||
if (!CCs[i]->getValueAsBit("Custom"))
|
||||
EmitCallingConv(CCs[i], O);
|
||||
for (Record *CC : CCs) {
|
||||
if (!CC->getValueAsBit("Custom"))
|
||||
EmitCallingConv(CC, O);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user