diff --git a/llvm/docs/CommandGuide/opt.rst b/llvm/docs/CommandGuide/opt.rst --- a/llvm/docs/CommandGuide/opt.rst +++ b/llvm/docs/CommandGuide/opt.rst @@ -113,10 +113,6 @@ opt -load=plugin.so -help -.. option:: -p - - Print module after each transformation. - EXIT STATUS ----------- diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -101,9 +101,6 @@ static cl::opt Force("f", cl::desc("Enable binary output on terminals")); -static cl::opt -PrintEachXForm("p", cl::desc("Print module after each transformation")); - static cl::opt NoOutput("disable-output", cl::desc("Do not write result bitcode file"), cl::Hidden); @@ -976,10 +973,6 @@ } } } - - if (PrintEachXForm) - Passes.add( - createPrintModulePass(errs(), "", PreserveAssemblyUseListOrder)); } if (StandardLinkOpts) {