[LLVMdev] getPointerToGlobal() / MCJIT

Kaylor, Andrew andrew.kaylor at intel.com
Tue Nov 13 18:09:18 PST 2012


It shouldn't be a terribly difficult thing to implement.  The RuntimeDyld already keeps a map of global symbols and provides a function getSymbolLoadAddress to get an up-to-date address for a named symbol.  It should be just a matter of connecting the dots.

-Andy

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Malea, Daniel
Sent: Tuesday, November 13, 2012 7:16 AM
To: Armin Steinhoff
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] getPointerToGlobal() / MCJIT

As far as I know, no one is working to fix the test case in question. Patches welcome :)

Cheers,
Dan



On 2012-11-13, at 1:29 AM, "Armin Steinhoff" <armin at steinhoff.de> wrote:

> 
> Hi all,
> 
> are there any plans to correct/implement the "getPointerToGlobal()" method for accessing global variables that are emitted by MCJIT?
> (see for details the unit test of MCJIT)
> 
> Best Regards
> 
> Armin
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list