mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Implement ExecutionEngine::freeMachineCodeForFunction()
llvm-svn: 17601
This commit is contained in:
parent
14f6ade91b
commit
8c397821a5
@ -120,6 +120,10 @@ public:
|
||||
return getPointerToFunction(F);
|
||||
}
|
||||
|
||||
/// freeMachineCodeForFunction - The interpreter does not generate any code.
|
||||
///
|
||||
void freeMachineCodeForFunction(Function *F) { }
|
||||
|
||||
// Methods used to execute code:
|
||||
// Place a call on the stack
|
||||
void callFunction(Function *F, const std::vector<GenericValue> &ArgVals);
|
||||
|
@ -330,3 +330,9 @@ void *JIT::recompileAndRelinkFunction(Function *F) {
|
||||
TJI.replaceMachineCodeForFunction(OldAddr, Addr);
|
||||
return Addr;
|
||||
}
|
||||
|
||||
/// freeMachineCodeForFunction - release machine code memory for given Function
|
||||
///
|
||||
void JIT::freeMachineCodeForFunction(Function *F) {
|
||||
// currently a no-op
|
||||
}
|
||||
|
@ -90,6 +90,11 @@ public:
|
||||
///
|
||||
void *recompileAndRelinkFunction(Function *F);
|
||||
|
||||
/// freeMachineCodeForFunction - deallocate memory used to code-generate this
|
||||
/// Function.
|
||||
///
|
||||
void freeMachineCodeForFunction(Function *F);
|
||||
|
||||
private:
|
||||
static MachineCodeEmitter *createEmitter(JIT &J);
|
||||
void runJITOnFunction (Function *F);
|
||||
|
Loading…
x
Reference in New Issue
Block a user