[LTO][Legacy] Decouple option parsing from LTOCodeGenerator
authorWael Yehia <wyehia@ca.ibm.com>
Wed, 31 Mar 2021 16:42:12 +0000 (16:42 +0000)
committerJinsong Ji <jji@us.ibm.com>
Wed, 31 Mar 2021 16:43:26 +0000 (16:43 +0000)
commit563cdeaafd5812cb90656380a8f9d6b85d2abf08
treee5cd20f6606cd32a83a7e63643295079131568f9
parent2a8b7cab6a3b52ab27acc44ba50a1528c8aa2d44
[LTO][Legacy] Decouple option parsing from LTOCodeGenerator

in this patch we add a new libLTO API to specify debug options independent of an lto_code_gen_t.
This allows clients to pass codegen flags (through libLTO) which otherwise today are ignored.

Reviewed By: steven_wu

Differential Revision: https://reviews.llvm.org/D92611
llvm/include/llvm-c/lto.h
llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/tools/lto/lto.cpp
llvm/tools/lto/lto.exports