diff options
author | Dehao Chen <dehao@google.com> | 2017-08-02 03:03:19 +0000 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2017-08-02 03:03:19 +0000 |
commit | b929c3e6e4f20170cb8427ca63236a1563ac4a4b (patch) | |
tree | 128b119f7bcd910d378abc6c8e7ec4338b8ba933 /tools/llvm-lto2 | |
parent | f7a9c73f74592809d1b298d4a608da25c88df17b (diff) |
Fix the bug that parseAAPipeline is not invoked in runNewPMPasses in release compiler.
Summary: The logic is guarded by "assert".
Reviewers: davidxl, davide, chandlerc
Reviewed By: davide, chandlerc
Subscribers: sanjoy, llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D36195
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-lto2')
-rw-r--r-- | tools/llvm-lto2/llvm-lto2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/llvm-lto2/llvm-lto2.cpp b/tools/llvm-lto2/llvm-lto2.cpp index da2703fd50a..5db441fff25 100644 --- a/tools/llvm-lto2/llvm-lto2.cpp +++ b/tools/llvm-lto2/llvm-lto2.cpp @@ -109,6 +109,10 @@ static cl::opt<bool> cl::desc("Run LTO passes using the new pass manager"), cl::init(false), cl::Hidden); +static cl::opt<bool> + DebugPassManager("debug-pass-manager", cl::init(false), cl::Hidden, + cl::desc("Print pass management debugging information")); + static void check(Error E, std::string Msg) { if (!E) return; @@ -195,6 +199,8 @@ static int run(int argc, char **argv) { Conf.RelocModel = *RM; Conf.CodeModel = CMModel; + Conf.DebugPassManager = DebugPassManager; + if (SaveTemps) check(Conf.addSaveTemps(OutputFilename + "."), "Config::addSaveTemps failed"); |