[PATCH] D31114: Refactor `initTargetOptions` out of `EmitAssemblyHelper::CreateTargetMachine` and use it to initialize TargetOptions for ThinLTO Backends

Mehdi AMINI via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 18 10:29:47 PDT 2017


mehdi_amini added a comment.

In https://reviews.llvm.org/D31114#704649, @tejohnson wrote:

> I think you won't get the correct handling of -emit-llvm and -emit-llvm-bc since we don't get the handling for Backend_Emit* in EmitAssemblyHelper::EmitAssembly.


I was not trying to achieve this. And your approach of an "OptimizeOnly" or "DisableCodeGen" on the lot::Config for this purpose makes sense.


https://reviews.llvm.org/D31114





More information about the cfe-commits mailing list