[PATCH] D19015: [LTO] hook up lto_codegen_debug_options() to codegen target options
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 13 00:23:11 PDT 2016
joker.eph added a comment.
In http://reviews.llvm.org/D19015#399466, @thomasguest wrote:
> In http://reviews.llvm.org/D19015#399462, @joker.eph wrote:
>
> > To put it differently: there is no command line option for LLVM (as a library), only APIs.
>
>
> Yes, what I am really after is a way to configure codegen when using LLVM via the LTO library. At the moment I cannot do so.
Yes, apparently no-one had this need till now, submit a patch :)
> The lto_codegen_debug_options() function does allow me to pass options in and does result in these options being parsed using cl::ParseCommandLineOptions() -- the problem is, without this patch, these options do not get applied, which I think is an issue for anyone trying to debug LTO.dll using lto_codegen_debug_options().
Sure.
http://reviews.llvm.org/D19015
More information about the llvm-commits
mailing list