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
This commit is contained in:
Brian Gaeke 2003-08-13 18:16:50 +00:00
parent 71d8478117
commit c227c1fc7f
2 changed files with 4 additions and 4 deletions

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);

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);