On 6 June 2010 17:17, Guoliang Jin <jingl1345 at gmail.com>
wrote:> Hi,
>
> I found some posts on the topic of whole program bitcode and gold plugin.
>
> I put lto_codegen_write_merged_modules(cg, "/path/to/output.bc")
into
> gold-plugin.cpp all_symbols_read_hook() and compiled one autotooled
> program (ftp://ftp.gnu.org/gnu/diction/diction-1.11.tar.gz) as described
> in the gold plugin document, however, I still did not see the output.bc.
>
> Can anyone has succeeded in doing this share with me how you archive
> this or what I may miss?
With a newer version of the plugin there is a also-emit-llvm option.
> Thanks very much,
> Guoliang
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
Cheers,
--
Rafael Ávila de Espíndola