[LLVMdev] write shared object file in memory
paul.redmond at intel.com
Sat Sep 24 11:59:04 PDT 2011
I'd like to take a llvm::Module and emit it as a shared object file in memory. I've been browsing the tools/ source for clues but it's not clear to me how I get the behavior of the -relocation-model=pic.
I see that the function TargetMachine::addPassesToEmitFile can be used to write an object file. What can I do to emit a shared object?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev