summaryrefslogtreecommitdiff
path: root/tools/opt/NewPMDriver.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-13 03:08:40 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-13 03:08:40 +0000
commit4a76032da63f0c9006336d9b9ab1074cf657b2c3 (patch)
tree54de43766a12eea76e6ea84c56df76eaa53b5849 /tools/opt/NewPMDriver.h
parent63735e79ff83cf8b123231cceac10903b3d0ef22 (diff)
downloadllvm-4a76032da63f0c9006336d9b9ab1074cf657b2c3.tar.gz
llvm-4a76032da63f0c9006336d9b9ab1074cf657b2c3.tar.bz2
llvm-4a76032da63f0c9006336d9b9ab1074cf657b2c3.tar.xz
[PM] Add an enum for describing the desired output strategy, and run
that through the interface rather than a simple bool. This should allow starting to wire up real output to round-trip IR through opt with the new pass manager. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199071 91177308-0d34-0410-b5e6-96231b3b80d8
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