[LLVMdev] Modifying machine code after it's generated with LLVM
Dirkjan Bussink
d.bussink at gmail.com
Fri Apr 12 14:56:16 PDT 2013
On Apr 12, 2013, at 15:14 , "Caldarale, Charles R" <Chuck.Caldarale at unisys.com> wrote:
>> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
>> On Behalf Of Dirkjan Bussink
>> Subject: [LLVMdev] Modifying machine code after it's generated with LLVM
>
>> I'd need to be able to pass a memory address where the actual native
>> code is generated to this fallback function, but I haven't found any
>> ways of doing this.
>
> Perhaps I don't understand the actual issue, but isn't this method sufficient?
>
> llvm::ExecutionEngine::getPointerToFunction();
Well, I'd need a specific address inside that memory space then where the actual constant value would be stored, pointing at another function or representing a type check value. Just the address to the function isn't sufficient for that.
--
Dirkjan
More information about the llvm-dev
mailing list