[PATCH] D137768: [opt][clang] Enable using -module-summary /-flto=thin with -S / -emit-llvm
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 07:34:04 PST 2022
tejohnson accepted this revision.
tejohnson added a comment.
This revision is now accepted and ready to land.
lgtm, thanks! One small suggestion below.
================
Comment at: clang/lib/CodeGen/BackendUtil.cpp:988
if (CodeGenOpts.PrepareForThinLTO && !CodeGenOpts.DisableLLVMPasses) {
if (!CodeGenOpts.ThinLinkBitcodeFile.empty()) {
ThinLinkOS = openOutputFile(CodeGenOpts.ThinLinkBitcodeFile);
----------------
I'd go ahead and move this extra file emission under the EmitBC case, since it is also a BC file.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137768/new/
https://reviews.llvm.org/D137768
More information about the llvm-commits
mailing list