Author: Arthur Eubanks Date: 2020-12-08T11:43:19-08:00 New Revision: dee1e6ac42e6e25e639fb053831f0723b90c18bd
URL: https://github.com/llvm/llvm-project/commit/dee1e6ac42e6e25e639fb053831f0723b90c18bd DIFF: https://github.com/llvm/llvm-project/commit/dee1e6ac42e6e25e639fb053831f0723b90c18bd.diff LOG: [llvm-lto2] Use NPM with ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D92870 Added: Modified: llvm/tools/llvm-lto2/llvm-lto2.cpp Removed: ################################################################################ diff --git a/llvm/tools/llvm-lto2/llvm-lto2.cpp b/llvm/tools/llvm-lto2/llvm-lto2.cpp index 4d7d7d8efe7d..b84bfff81582 100644 --- a/llvm/tools/llvm-lto2/llvm-lto2.cpp +++ b/llvm/tools/llvm-lto2/llvm-lto2.cpp @@ -17,6 +17,7 @@ #include "llvm/Bitcode/BitcodeReader.h" #include "llvm/CodeGen/CommandFlags.h" +#include "llvm/Config/llvm-config.h" #include "llvm/IR/DiagnosticPrinter.h" #include "llvm/LTO/Caching.h" #include "llvm/LTO/LTO.h" @@ -144,7 +145,7 @@ static cl::opt<bool> static cl::opt<bool> UseNewPM("use-new-pm", cl::desc("Run LTO passes using the new pass manager"), - cl::init(false), cl::Hidden); + cl::init(LLVM_ENABLE_NEW_PASS_MANAGER), cl::Hidden); static cl::opt<bool> DebugPassManager("debug-pass-manager", cl::init(false), cl::Hidden, _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits