summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitf96366550c1dc50c120aa7f7fbc7d1ae6c590e2c (patch)
treefbec3ba328add49dba177078fb5d61bfa73e2686 /llvm
parentaad30b0dc93fec2a96e6c087435b9cccb695b9cb (diff)
downloadbcm5719-llvm-f96366550c1dc50c120aa7f7fbc7d1ae6c590e2c.tar.gz
bcm5719-llvm-f96366550c1dc50c120aa7f7fbc7d1ae6c590e2c.zip
refactor these interfaces a bit
llvm-svn: 22281
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Target/TargetMachine.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/llvm/include/llvm/Target/TargetMachine.h b/llvm/include/llvm/Target/TargetMachine.h
index b0deafc0235..11bc2f139cd 100644
--- a/llvm/include/llvm/Target/TargetMachine.h
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud