[LLVMdev] How to write output of a backend to a memory buffer instead of a into a file?
eliben at google.com
Wed May 22 13:35:27 PDT 2013
On Wed, May 22, 2013 at 1:25 PM, Frank Winter <fwinter at jlab.org> wrote:
> Right now, I am using
> to write the output of a backend to a file. How can I tell LLVM to write
> into a memory buffer instead
Look at addPassesToEmitMC. One example would be its usage in MCJIT
(lib/ExecutionEngine/MCJIT/MCJIT.cpp), which indeed emits the binary into
memory and loads it from there.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev