Skip to content

Commit 266e82d

Browse files
committed
Change variable Name to OutputFileName
1 parent 355ba07 commit 266e82d

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

llvm/include/llvm/IR/Function.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -943,13 +943,13 @@ class LLVM_ABI Function : public GlobalObject, public ilist_node<Function> {
943943
void viewCFG() const;
944944

945945
/// viewCFG - This function is meant for use from the debugger. It works just
946-
/// like viewCFG(), but generates the dot file with the given filename.
947-
void viewCFG(const char *Name) const;
946+
/// like viewCFG(), but generates the dot file with the given file name.
947+
void viewCFG(const char *OutputFileName) const;
948948

949949
/// Extended form to print edge weights.
950950
void viewCFG(bool ViewCFGOnly, const BlockFrequencyInfo *BFI,
951951
const BranchProbabilityInfo *BPI,
952-
const char *Name = nullptr) const;
952+
const char *OutputFileName = nullptr) const;
953953

954954
/// viewCFGOnly - This function is meant for use from the debugger. It works
955955
/// just like viewCFG, but it does not include the contents of basic blocks
@@ -959,8 +959,8 @@ class LLVM_ABI Function : public GlobalObject, public ilist_node<Function> {
959959
void viewCFGOnly() const;
960960

961961
/// viewCFG - This function is meant for use from the debugger. It works just
962-
/// like viewCFGOnly(), but generates the dot file with the given filename.
963-
void viewCFGOnly(const char *Name) const;
962+
/// like viewCFGOnly(), but generates the dot file with the given file name.
963+
void viewCFGOnly(const char *OutputFileName) const;
964964

965965
/// Extended form to print edge weights.
966966
void viewCFGOnly(const BlockFrequencyInfo *BFI,

llvm/lib/Analysis/CFGPrinter.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,18 @@ PreservedAnalyses CFGOnlyPrinterPass::run(Function &F,
136136
///
137137
void Function::viewCFG() const { viewCFG(false, nullptr, nullptr); }
138138

139-
void Function::viewCFG(const char *Name) const {
140-
viewCFG(false, nullptr, nullptr, Name);
139+
void Function::viewCFG(const char *OutputFileName) const {
140+
viewCFG(false, nullptr, nullptr, OutputFileName);
141141
}
142142

143143
void Function::viewCFG(bool ViewCFGOnly, const BlockFrequencyInfo *BFI,
144144
const BranchProbabilityInfo *BPI,
145-
const char *Name) const {
145+
const char *OutputFileName) const {
146146
if (!CFGFuncName.empty() && !getName().contains(CFGFuncName))
147147
return;
148148
DOTFuncInfo CFGInfo(this, BFI, BPI, BFI ? getMaxFreq(*this, BFI) : 0);
149-
ViewGraph(&CFGInfo, Name ? Name : "cfg" + getName(), ViewCFGOnly);
149+
ViewGraph(&CFGInfo, OutputFileName ? OutputFileName : "cfg" + getName(),
150+
ViewCFGOnly);
150151
}
151152

152153
/// viewCFGOnly - This function is meant for use from the debugger. It works
@@ -156,8 +157,8 @@ void Function::viewCFG(bool ViewCFGOnly, const BlockFrequencyInfo *BFI,
156157
///
157158
void Function::viewCFGOnly() const { viewCFGOnly(nullptr, nullptr); }
158159

159-
void Function::viewCFGOnly(const char *Name) const {
160-
viewCFG(true, nullptr, nullptr, Name);
160+
void Function::viewCFGOnly(const char *OutputFileName) const {
161+
viewCFG(true, nullptr, nullptr, OutputFileName);
161162
}
162163

163164
void Function::viewCFGOnly(const BlockFrequencyInfo *BFI,

0 commit comments

Comments
 (0)