[clang] [clang][fat-lto-objects] Make module flags match non-FatLTO pipelines (PR #83159)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 27 13:42:59 PST 2024
================
@@ -1036,7 +1041,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
if (!actionRequiresCodeGen(Action) && CodeGenOpts.VerifyModule)
MPM.addPass(VerifierPass());
- if (Action == Backend_EmitBC || Action == Backend_EmitLL) {
+ if (Action == Backend_EmitBC || Action == Backend_EmitLL ||
+ CodeGenOpts.FatLTO) {
----------------
ilovepi wrote:
I believe its `Backend_EmitObj` . I think that gets a little complicated when `-S` or `-emit-llvm` is passed, since I think we then select `Backend_EmitLL` or `Backend_EmitBC`. https://github.com/llvm/llvm-project/blob/d82e93e7f129d9e8b72570efdf4a15d6ec3d4336/clang/lib/Driver/Driver.cpp#L4770
https://github.com/llvm/llvm-project/pull/83159
More information about the cfe-commits
mailing list