Replace r168930 with a more reasonable patch.
[oota-llvm.git] / include / llvm / CodeGen / Passes.h
index 44c9676b2ce4a336488cc3928588b0956ad44507..282e4edcfb441d5cc58b9a12b4bc51a80ac38ad7 100644 (file)
@@ -141,6 +141,10 @@ public:
   /// Add passes to lower exception handling for the code generator.
   void addPassesToHandleExceptions();
 
+  /// Add pass to prepare the LLVM IR for code generation. This should be done
+  /// before exception handling preparation passes.
+  virtual void addCodeGenPrepare();
+
   /// Add common passes that perform LLVM IR to IR transforms in preparation for
   /// instruction selection.
   virtual void addISelPrepare();