Skip to content

Commit 715b1d5

Browse files
authored
[NFC] Clarify the syntax of passes flag (#136175)
1 parent b3529ed commit 715b1d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

llvm/tools/opt/optdriver.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,12 @@ static cl::opt<bool> EnableLegacyPassManager(
8484
static cl::opt<std::string> PassPipeline(
8585
"passes",
8686
cl::desc(
87-
"A textual description of the pass pipeline. To have analysis passes "
88-
"available before a certain pass, add \"require<foo-analysis>\"."));
87+
"A textual (comma separated) description of the pass pipeline e.g.,"
88+
"-passes=\"foo,bar\", to have analysis passes available before a pass, "
89+
"add \"require<foo-analysis>\". See "
90+
"https://llvm.org/docs/NewPassManager.html#invoking-opt "
91+
"for more details on the pass pipeline syntax. "));
92+
8993
static cl::alias PassPipeline2("p", cl::aliasopt(PassPipeline),
9094
cl::desc("Alias for -passes"));
9195

0 commit comments

Comments
 (0)