[LLVMdev] Emit only one function of the module to native code
christophe.duvernois at gmail.com
Mon Nov 19 13:31:00 PST 2012
I thought there was a more direct way to do it...
2012/11/19 Eric Christopher <echristo at gmail.com>
> llvm-extract and then llc?
> On Mon, Nov 19, 2012 at 10:25 AM, Christophe Duvernois <
> christophe.duvernois at gmail.com> wrote:
>> I use llvm-3.1. I have a large module and i want to emit native code (or
>> assembly) for one function.
>> I tried to replace the PassManager in llc by a FunctionPassManager but I
>> have a crash so this is probably not the good way to do it. (cf attached
>> my simple test)
>> Is it possible to write one function from the module? What is the good
>> way to do it?
>> Thanks in advance.
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev