diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-17 18:27:12 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-17 18:27:12 +0000 |
commit | d2bc5ac04556a07fe846a514644a171639593d5c (patch) | |
tree | 65ebb9185996608b3c9f0c7c67268f91fe4a96d6 /llvm/lib/ExecutionEngine | |
parent | 3b5f24513c70b60f345031844bba93324c173874 (diff) | |
download | bcm5719-llvm-d2bc5ac04556a07fe846a514644a171639593d5c.tar.gz bcm5719-llvm-d2bc5ac04556a07fe846a514644a171639593d5c.zip |
Tidy up doxygen comment for getPointerToFunction().
Add prototypes for recompileAndRelinkFunction() and runJITOnFunction().
llvm-svn: 9200
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/VM.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/VM.h b/llvm/lib/ExecutionEngine/JIT/VM.h index ddfd8964f8b..d8fabc346f7 100644 --- a/llvm/lib/ExecutionEngine/JIT/VM.h +++ b/llvm/lib/ExecutionEngine/JIT/VM.h @@ -54,11 +54,21 @@ public: /// getPointerToFunction - This returns the address of the specified function, /// compiling it if necessary. + /// void *getPointerToFunction(Function *F); + /// recompileAndRelinkFunction - This method is used to force a function + /// which has already been compiled, to be compiled again, possibly + /// after it has been modified. Then the entry to the old copy is overwritten + /// with a branch to the new copy. If there was no old copy, this acts + /// just like VM::getPointerToFunction(). + /// + void *recompileAndRelinkFunction(Function *F); + private: static MachineCodeEmitter *createEmitter(VM &V); void setupPassManager(); + void runJITOnFunction (Function *F); }; #endif |