summaryrefslogtreecommitdiff
path: root/tools/opt/NewPMDriver.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/opt/NewPMDriver.h')
-rw-r--r--tools/opt/NewPMDriver.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/opt/NewPMDriver.h b/tools/opt/NewPMDriver.h
index 17ac75be54..2ae1ad5d83 100644
--- a/tools/opt/NewPMDriver.h
+++ b/tools/opt/NewPMDriver.h
@@ -28,6 +28,14 @@ class LLVMContext;
class Module;
class tool_output_file;
+namespace opt_tool {
+enum OutputKind {
+ OK_NoOutput,
+ OK_OutputAssembly,
+ OK_OutputBitcode
+};
+}
+
/// \brief Driver function to run the new pass manager over a module.
///
/// This function only exists factored away from opt.cpp in order to prevent
@@ -36,7 +44,7 @@ class tool_output_file;
/// when the transition finishes.
bool runPassPipeline(StringRef Arg0, LLVMContext &Context, Module &M,
tool_output_file *Out, StringRef PassPipeline,
- bool NoOutput);
+ opt_tool::OutputKind OK);
}
#endif