diff --git a/llvm/tools/opt/optdriver.cpp b/llvm/tools/opt/optdriver.cpp index 78ed1662682d9..5ca4d883697f0 100644 --- a/llvm/tools/opt/optdriver.cpp +++ b/llvm/tools/opt/optdriver.cpp @@ -84,8 +84,12 @@ static cl::opt EnableLegacyPassManager( static cl::opt PassPipeline( "passes", cl::desc( - "A textual description of the pass pipeline. To have analysis passes " - "available before a certain pass, add \"require\".")); + "A textual (comma separated) description of the pass pipeline e.g.," + "-passes=\"foo,bar\", to have analysis passes available before a pass, " + "add \"require\". See " + "https://llvm.org/docs/NewPassManager.html#invoking-opt " + "for more details on the pass pipeline syntax. ")); + static cl::alias PassPipeline2("p", cl::aliasopt(PassPipeline), cl::desc("Alias for -passes"));