[LLVMdev] Static linking of execution engine

Kaylor, Andrew andrew.kaylor at intel.com
Wed May 22 10:32:34 PDT 2013

If you send me details about how you're building this I'll look into it.


-----Original Message-----
From: Mario Schwalbe [mailto:mario at se.inf.tu-dresden.de] 
Sent: Wednesday, May 22, 2013 2:34 AM
To: Kaylor, Andrew
Cc: Mario Schwalbe; LLVM Devel
Subject: Re: [LLVMdev] Static linking of execution engine


Am 21.05.13 21:57, schrieb Kaylor, Andrew:
> Yeah, this is a problem with the static constructor getting optimized out.  Including "JIT.h" is supposed to fix that.
> Is it possible that the file where you are including "JIT.h" doesn't have any required code in it?

I'm including "JIT.h" directly in the main module, which also uses the engine. See the small test case attached. Even if I bypass the dummy object and call LLVMLinkInJIT() directly, it still gets optimized out...


More information about the llvm-dev mailing list