1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Deconstify parameter to getPointerToFunction().

Use a FunctionPassManager instead of a PassManager.

llvm-svn: 7820
This commit is contained in:
Brian Gaeke 2003-08-13 18:16:50 +00:00
parent a6ca67ed4a
commit 39ff839ca3

View File

@ -19,7 +19,7 @@ class MachineCodeEmitter;
class VM : public ExecutionEngine { class VM : public ExecutionEngine {
TargetMachine &TM; // The current target we are compiling to 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 MachineCodeEmitter *MCE; // MCE object
public: public:
@ -49,7 +49,7 @@ public:
/// getPointerToFunction - This returns the address of the specified function, /// getPointerToFunction - This returns the address of the specified function,
/// compiling it if necessary. /// compiling it if necessary.
void *getPointerToFunction(const Function *F); void *getPointerToFunction(Function *F);
private: private:
static MachineCodeEmitter *createEmitter(VM &V); static MachineCodeEmitter *createEmitter(VM &V);