[PATCH] D109664: [opt] Remove the -p flag
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 12 14:41:21 PDT 2021
aeubanks created this revision.
aeubanks added a reviewer: asbirlea.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This prints out the module after each pass for the legacy PM.
--print-after-all already does the same.
No tests are using this.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109664
Files:
llvm/docs/CommandGuide/opt.rst
llvm/tools/opt/opt.cpp
Index: llvm/tools/opt/opt.cpp
===================================================================
--- llvm/tools/opt/opt.cpp
+++ llvm/tools/opt/opt.cpp
@@ -101,9 +101,6 @@
static cl::opt<bool>
Force("f", cl::desc("Enable binary output on terminals"));
-static cl::opt<bool>
-PrintEachXForm("p", cl::desc("Print module after each transformation"));
-
static cl::opt<bool>
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) {
Index: llvm/docs/CommandGuide/opt.rst
===================================================================
--- llvm/docs/CommandGuide/opt.rst
+++ llvm/docs/CommandGuide/opt.rst
@@ -113,10 +113,6 @@
opt -load=plugin.so -help
-.. option:: -p
-
- Print module after each transformation.
-
EXIT STATUS
-----------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109664.372134.patch
Type: text/x-patch
Size: 1001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210912/a4f4f30f/attachment.bin>
More information about the llvm-commits
mailing list