Skip to content

Commit c201a9e

Browse files
committed
Rename getQualifiedNameFromInit to getQualifiedRegisterName.
1 parent 0e8618a commit c201a9e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/utils/TableGen/CallingConvEmitter.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CallingConvEmitter {
5050
void emitArgRegisterLists(raw_ostream &O);
5151

5252
StringMap<const CodeGenRegister *> RegistersByDefName;
53-
std::string getQualifiedNameFromInit(const Init *I);
53+
std::string getQualifiedRegisterName(const Init *I);
5454
};
5555
} // End anonymous namespace
5656

@@ -135,7 +135,7 @@ void CallingConvEmitter::emitCallingConv(const Record *CC, raw_ostream &O) {
135135

136136
// Return the name of the specified Init (DefInit or StringInit), with a
137137
// namespace qualifier if the corresponding record contains one.
138-
std::string CallingConvEmitter::getQualifiedNameFromInit(const Init *I) {
138+
std::string CallingConvEmitter::getQualifiedRegisterName(const Init *I) {
139139
if (const auto *DI = dyn_cast<DefInit>(I))
140140
return getQualifiedName(DI->getDef());
141141

@@ -156,7 +156,7 @@ void CallingConvEmitter::emitAction(const Record *Action, indent Indent,
156156
O << Indent << " ";
157157
ListSeparator LS;
158158
for (const Init *V : RL->getValues())
159-
O << LS << getQualifiedNameFromInit(V);
159+
O << LS << getQualifiedRegisterName(V);
160160
O << "\n" << Indent << "};\n";
161161
};
162162

@@ -165,7 +165,7 @@ void CallingConvEmitter::emitAction(const Record *Action, indent Indent,
165165
SmallVector<std::string> Parms;
166166
if (RegLists[0]->size() == 1) {
167167
for (const ListInit *LI : RegLists)
168-
Parms.push_back(getQualifiedNameFromInit(LI->getElement(0)));
168+
Parms.push_back(getQualifiedRegisterName(LI->getElement(0)));
169169
} else {
170170
for (const std::string &S : RLNames)
171171
Parms.push_back(S + utostr(++Counter));
@@ -234,7 +234,7 @@ void CallingConvEmitter::emitAction(const Record *Action, indent Indent,
234234
Action->isSubClassOf("CCAssignToRegAndStack")) {
235235
const ListInit *RegList = Action->getValueAsListInit("RegList");
236236
for (unsigned I = 0, E = RegList->size(); I != E; ++I) {
237-
std::string Name = getQualifiedNameFromInit(RegList->getElement(I));
237+
std::string Name = getQualifiedRegisterName(RegList->getElement(I));
238238
if (SwiftAction)
239239
AssignedSwiftRegsMap[CurrentAction].insert(std::move(Name));
240240
else

0 commit comments

Comments
 (0)