Add a new option to indicate we want the code generator to emit code quickly,
[oota-llvm.git] / include / llvm / Target / TargetMachine.h
index aae7d901fbebf93f4becb4ccc17da8d7548072ed..d13a4ed78df89688662f2e3e279b49a30f288509 100644 (file)
@@ -143,11 +143,12 @@ public:
 
   /// 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.
+  /// code generation.  If Fast is set to true, the code generator should emit
+  /// code as fast as possible, without regard for compile time.  This method
+  /// should return true if emission of this file type is not supported.
   ///
   virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
-                                   CodeGenFileType FileType) {
+                                   CodeGenFileType FileType, bool Fast) {
     return true;
   }