aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-06-25 02:47:50 +0000
committerChris Lattner <sabre@nondot.org>2005-06-25 02:47:50 +0000
commit11f14c8be0946a8fb95189156ff1d64a01ff7da3 (patch)
tree39c9192b0e88021122682bb7be1b4e9496f3e65a
parentb7eb682293bd53607f96fd5f95cbeca8edfe0122 (diff)
refactor these interfaces a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22281 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetMachine.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index b0deafc023..11bc2f139c 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -112,12 +112,19 @@ public:
virtual const TargetSchedInfo *getSchedInfo() const { return 0; }
virtual const SparcV9RegInfo *getRegInfo() const { return 0; }
- /// addPassesToEmitAssembly - Add passes to the specified pass manager to get
- /// assembly langage code emitted. Typically this will involve several steps
- /// of code generation. This method should return true if assembly emission
- /// is not supported.
+ /// CodeGenFileType - These enums are meant to be passed into
+ /// addPassesToEmitFile to indicate what type of file to emit.
+ enum CodeGenFileType {
+ AssemblyFile
+ };
+
+ /// addPassesToEmitFile - Add passes to the specified pass manager to get
+ /// the specified file emitted. Typically this will involve several steps of
+ /// code generation. This method should return true if emission of this file
+ /// type is not supported.
///
- virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
+ virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
+ CodeGenFileType FileType) {
return true;
}