Factory methods for function passes now return type FunctionPass *.
[oota-llvm.git] / lib / ExecutionEngine / JIT / JIT.h
index 4b83e7c9a93370dab2348f931b29ad533d1aa7ad..b4a1e0fa121e086af21c1c2dd2ec4821d39c5a95 100644 (file)
@@ -19,7 +19,7 @@ class MachineCodeEmitter;
 
 class VM : public ExecutionEngine {
   TargetMachine &TM;       // The current target we are compiling to
-  PassManager PM;          // Passes to compile a function
+  FunctionPassManager PM;  // Passes to compile a function
   MachineCodeEmitter *MCE; // MCE object
 
 public:
@@ -49,7 +49,7 @@ public:
 
   /// getPointerToFunction - This returns the address of the specified function,
   /// compiling it if necessary.
-  void *getPointerToFunction(const Function *F);
+  void *getPointerToFunction(Function *F);
 
 private:
   static MachineCodeEmitter *createEmitter(VM &V);