Skip to content

Commit 11f2650

Browse files
committed
[SIL] Renamed flag for viewing canonical cfg.
Previously, the flag was named -sil-view-guaranteed-cfg. Here, it's renamed to -sil-view-canonical-cfg.
1 parent 45b84b8 commit 11f2650

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ static llvm::cl::opt<bool>
4343
SILViewCFG("sil-view-cfg", llvm::cl::init(false),
4444
llvm::cl::desc("Enable the sil cfg viewer pass"));
4545

46-
static llvm::cl::opt<bool> SILViewGuaranteedCFG(
47-
"sil-view-guaranteed-cfg", llvm::cl::init(false),
46+
static llvm::cl::opt<bool> SILViewCanonicalCFG(
47+
"sil-view-canonical-cfg", llvm::cl::init(false),
4848
llvm::cl::desc("Enable the sil cfg viewer pass after diagnostics"));
4949

5050
static llvm::cl::opt<bool> SILViewSILGenCFG(
@@ -187,8 +187,8 @@ SILPassPipelinePlan::getDiagnosticPassPipeline(const SILOptions &Options) {
187187
// Otherwise run the rest of diagnostics.
188188
addMandatoryDiagnosticOptPipeline(P);
189189

190-
if (SILViewGuaranteedCFG) {
191-
addCFGPrinterPipeline(P, "SIL View Guaranteed CFG");
190+
if (SILViewCanonicalCFG) {
191+
addCFGPrinterPipeline(P, "SIL View Canonical CFG");
192192
}
193193
return P;
194194
}

0 commit comments

Comments
 (0)