I'm writing a backend, and trying to build it outside of the source tree so that it can be compiled without having all of the llvm source. I've noticed that the list of AsmPrinters and Targets are generated at config time, so I've written a chunk of __attribute__((constructor)) code that registers the printers and targets when the DSO is loaded. Is this the right way to do this, or is there some piece I'm missing out on? Thanks! Garret
Apparently Analagous Threads
- [LLVMdev] Out of tree targets
- [LLVMdev] llvm build broken with "--enable-targets=x86, x86_64, arm"
- [LLVMdev] [patch] CodeEmitter Memory Foot Reduction
- [LLVMdev] Problem building llvm after r109996 (Add InitializeNativeTargetAsmPrinter())
- [LLVMdev] Problem building llvm after r109996 (Add InitializeNativeTargetAsmPrinter())