summaryrefslogtreecommitdiff
path: root/tools/opt/NewPMDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/opt/NewPMDriver.cpp')
-rw-r--r--tools/opt/NewPMDriver.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/opt/NewPMDriver.cpp b/tools/opt/NewPMDriver.cpp
index e577995e26..b05da36d28 100644
--- a/tools/opt/NewPMDriver.cpp
+++ b/tools/opt/NewPMDriver.cpp
@@ -23,10 +23,11 @@
#include "llvm/Support/ToolOutputFile.h"
using namespace llvm;
+using namespace opt_tool;
bool llvm::runPassPipeline(StringRef Arg0, LLVMContext &Context, Module &M,
tool_output_file *Out, StringRef PassPipeline,
- bool NoOutput) {
+ OutputKind OK) {
// Before executing passes, print the final values of the LLVM options.
cl::PrintOptionValues();
@@ -40,7 +41,7 @@ bool llvm::runPassPipeline(StringRef Arg0, LLVMContext &Context, Module &M,
MPM.run(&M);
// Declare success.
- if (!NoOutput)
+ if (OK != OK_NoOutput)
Out->keep();
return true;
}