[LLVMdev] Building out-of-tree targets
Garret Kelly
garret.kelly at gmail.com
Mon Nov 22 22:34:44 PST 2010
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
More information about the llvm-dev
mailing list