[LLVMdev] Fix for non-standard variable length array + Visual C X86 specific code

Morten Ofstad morten at hue.no
Mon Oct 18 09:03:53 PDT 2004


Chris Lattner wrote:
> Can you explain what goes wrong without the stub?  It's the only part that
> I didn't apply.

The X86 backend doesn't get registered since there are no references to 
symbols in X86TargetMachine the object file is never pulled in from the 
library I create, and thus the static intializer for the RegisterTarget 
is never called...

   RegisterTarget<X86TargetMachine> X("x86", "  IA-32 (Pentium and above)");

I've tried some other ways to resolve it, but so far I've had no luck .. 
   any suggestions are appreciated, as this is a problem in other places 
as well - and I'm not happy with the IncludeFile hack, I can well 
understand why you didn't want to apply it.

m.




More information about the llvm-dev mailing list