OSDN Git Service

Deconstify parameter to getPointerToFunction().
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 13 Aug 2003 18:16:50 +0000 (18:16 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 13 Aug 2003 18:16:50 +0000 (18:16 +0000)
Use a FunctionPassManager instead of a PassManager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7820 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JIT.h
lib/ExecutionEngine/JIT/VM.h

index 4b83e7c..b4a1e0f 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);
index 4b83e7c..b4a1e0f 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);