[LLVMdev] X86TargetMachineModule not helping
stein at hue.no
Wed May 28 05:27:40 CDT 2008
In Visual Studio 2005, you can force the linker to include specific symbols.
In your project, under "Configuration Properties/Linker/Input/Force Symbol
References", try adding _X86TargetMachineModule.
Hope that helps!
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Nicolas Capens
Sent: 27. mai 2008 00:11
To: 'LLVM Developers Mailing List'
Subject: [LLVMdev] X86TargetMachineModule not helping
After creating a new LLVM-based project, I faced an odd problem.
ExecutionEngine::create always retuned null. After some investigation I
found out that it was due to the target architecture not getting registered.
I'm using Visual C++ 2005 and in the X86TargetMachine.cpp file an extern
variable X86TargetMachineModule is created to 'ensure' that the module is
linked in. It works for the example projects, but not for the one I created.
When I write a value to X86TargetMachineModule in another module, all is
fine and dandy.
Although it's a viable workaround for now I was wondering if anyone knew a
more elegant solution, or has an explanation why X86TargetMachineModule
works for the example projects but not for mine.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMdev