[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h

Chris Lattner lattner at cs.uiuc.edu
Fri Jun 24 19:48:01 PDT 2005



Changes in directory llvm/include/llvm/Target:

TargetMachine.h updated: 1.51 -> 1.52
---
Log message:

refactor these interfaces a bit


---
Diffs of the changes:  (+12 -5)

 TargetMachine.h |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.51 llvm/include/llvm/Target/TargetMachine.h:1.52
--- llvm/include/llvm/Target/TargetMachine.h:1.51	Thu Apr 21 15:53:44 2005
+++ llvm/include/llvm/Target/TargetMachine.h	Fri Jun 24 21:47:50 2005
@@ -112,12 +112,19 @@
   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;
   }
 






More information about the llvm-commits mailing list