diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2018-07-11 23:30:25 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2018-07-11 23:30:25 +0000 |
commit | 9f22752c4b5b2afede1429e299fad0bdc48c02d8 (patch) | |
tree | fd8a9d4ddb9fd671eb61cb416d8cb24c2bec8e41 /llvm/lib/IR/IRPrintingPasses.cpp | |
parent | 0319c28459203f4a0c8bb456d377357f752c6bc2 (diff) | |
download | bcm5719-llvm-9f22752c4b5b2afede1429e299fad0bdc48c02d8.tar.gz bcm5719-llvm-9f22752c4b5b2afede1429e299fad0bdc48c02d8.zip |
IR: Skip -print-*-all after -print-*
This changes `-print-*` from transformation passes to analysis passes so
that `-print-after-all` and `-print-before-all` don't trigger. This
avoids some redundant output.
Patch by Son Tuan Vu!
llvm-svn: 336869
Diffstat (limited to 'llvm/lib/IR/IRPrintingPasses.cpp')
-rw-r--r-- | llvm/lib/IR/IRPrintingPasses.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/IRPrintingPasses.cpp b/llvm/lib/IR/IRPrintingPasses.cpp index 2aff2f2ebe4..befe1d9ffb1 100644 --- a/llvm/lib/IR/IRPrintingPasses.cpp +++ b/llvm/lib/IR/IRPrintingPasses.cpp @@ -127,13 +127,13 @@ public: char PrintModulePassWrapper::ID = 0; INITIALIZE_PASS(PrintModulePassWrapper, "print-module", - "Print module to stderr", false, false) + "Print module to stderr", false, true) char PrintFunctionPassWrapper::ID = 0; INITIALIZE_PASS(PrintFunctionPassWrapper, "print-function", - "Print function to stderr", false, false) + "Print function to stderr", false, true) char PrintBasicBlockPass::ID = 0; INITIALIZE_PASS(PrintBasicBlockPass, "print-bb", "Print BB to stderr", false, - false) + true) ModulePass *llvm::createPrintModulePass(llvm::raw_ostream &OS, const std::string &Banner, |