diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-08-13 18:16:50 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-08-13 18:16:50 +0000 |
commit | c227c1fc7fe9dcfbb1ee0245d5b9b190e2835631 (patch) | |
tree | d96cd7cc9f9687ced8aa612a9136091292baafef /lib | |
parent | 71d84781176dab7d2f4e78e78ac91286198487d5 (diff) | |
download | external_llvm-c227c1fc7fe9dcfbb1ee0245d5b9b190e2835631.zip external_llvm-c227c1fc7fe9dcfbb1ee0245d5b9b190e2835631.tar.gz external_llvm-c227c1fc7fe9dcfbb1ee0245d5b9b190e2835631.tar.bz2 |
Deconstify parameter to getPointerToFunction().
Use a FunctionPassManager instead of a PassManager.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.h | 4 | ||||
-rw-r--r-- | lib/ExecutionEngine/JIT/VM.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.h b/lib/ExecutionEngine/JIT/JIT.h index 4b83e7c..b4a1e0f 100644 --- a/lib/ExecutionEngine/JIT/JIT.h +++ b/lib/ExecutionEngine/JIT/JIT.h @@ -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); diff --git a/lib/ExecutionEngine/JIT/VM.h b/lib/ExecutionEngine/JIT/VM.h index 4b83e7c..b4a1e0f 100644 --- a/lib/ExecutionEngine/JIT/VM.h +++ b/lib/ExecutionEngine/JIT/VM.h @@ -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); |