From 39ff839ca35b73ad18b67563aac7f22630d5e603 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 13 Aug 2003 18:16:50 +0000 Subject: [PATCH] Deconstify parameter to getPointerToFunction(). Use a FunctionPassManager instead of a PassManager. llvm-svn: 7820 --- lib/ExecutionEngine/JIT/VM.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ExecutionEngine/JIT/VM.h b/lib/ExecutionEngine/JIT/VM.h index 4b83e7c9a93..b4a1e0fa121 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);