[llvm-commits] [PATCH] Fix to pass options from Gold plugin to LTO codegen

Nick Lewycky nicholas at mxc.ca
Thu Oct 22 20:33:25 PDT 2009


Viktor Kutuzov wrote:
> Hello everyone,
> 
> Please find the patch attached.
> This should fix the issue when gold plugin doesn't pass the  -plugin-opt 
> options down to the LTO codegen.
> See the thread "[LLVMdev] getting gold plugin to work?" for more details.

What's the difference between setCodeGenDebugOptions and 
setCodeGenOption? It looks like they should be merged into one then 
exposed by lto_codegen_set_option. And that would be even better if it 
took an argc+argv pair, even if that's a little harder to construct from 
the gold plugin, many option parsing packages work by removing the 
options they recognize from argc+argv and leaving the rest in place.

Nick



More information about the llvm-commits mailing list