[PATCH] D19015: [LTO] ensure lto_codegen_debug_options() are passed on to LLVM
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 13 13:29:25 PDT 2016
> What clang does is instantiate llvm::TargetOptions and fill in the fields
> directly. That is a *bad API* because it too closely ties the caller and
> callee to lock-step revisions. Clang statically links LLVM so there is
> no versioning problem, but it is definitely not the right library API.
> --paulr
To solve that you need to add a new C only enum or struct. In the same
way we have lto_codegen_model, we could have lto_codegen_options.
Cheers,
Rafael
More information about the llvm-commits
mailing list