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 @@ -70,8 +70,10 @@ static cl::list PassList(cl::desc("Optimizations available:")); -static cl::opt EnableNewPassManager( - "enable-new-pm", cl::desc("Enable the new pass manager"), cl::init(false)); +static cl::opt + EnableNewPassManager("enable-new-pm", + cl::desc("Enable the new pass manager"), + cl::init(LLVM_ENABLE_NEW_PASS_MANAGER)); // This flag specifies a textual description of the optimization pass pipeline // to run over the module. This flag switches opt to use the new pass manager