[LLVMdev] InitializeNativeTarget

Albert Graef Dr.Graef at t-online.de
Wed Oct 7 11:36:24 PDT 2009


Kenneth Uildriks wrote:
> It seems that a client application needs to call
> InitializeNativeTarget or LLVMInitializeNativeTarget before doing any
> JITting.  Unfortunately, LLVMInitializeNativeTarget is defined static
> inline and does not appear in the .a files; thus a client not written
> in C or C++ trying to JIT cannot link to the library and call
> LLVMInitializeNativeTarget that way.

Yes, so you'll need to add a little C++ module to your wrapper that does
the necessary initializations and is callable from your target language.

Albert

-- 
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email:  Dr.Graef at t-online.de, ag at muwiinfa.geschichte.uni-mainz.de
WWW:    http://www.musikinformatik.uni-mainz.de/ag



More information about the llvm-dev mailing list