[llvm-dev] llvm::GlobalVariable usage (newbie question)

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue May 30 12:58:12 PDT 2017


On 30 May 2017 at 12:39, Nikodemus Siivola via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> The docs are pretty vague about this. After digging into the examples I got
> the following to work with JIT to gain a pointer to variable elsewhere in
> the runtime, but I'd like to understand what is going on here, and if there
> is a, um, nicer API that I'm missing?

Have you looked at Module::getOrInsertGlobal? It seems to be pretty
much exactly what you're doing.

Cheers.

Tim.


More information about the llvm-dev mailing list