[PATCH] D19015: [LTO] ensure lto_codegen_debug_options() are passed on to LLVM

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 10:07:52 PDT 2016

joker.eph added a comment.

> Thanks for the information @probinson

>  I was imagining the way to configure codegen via the C API would be to add a new function: lto_codegen_configure(lto_codegen_t cg, char ** argv, int argc);

You got me wrong: the problem is not with the name of the API, it is with the fact that we don't want *any command line* argument, i.e. we should never call `cl::ParseCommandLineOptions` as part of a normal flow (i.e. other than debug).


More information about the llvm-commits mailing list