[PATCH] D94647: [Driver] -gsplit-dwarf: Produce .dwo regardless of -gN for -fthinlto-index=
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 13 22:45:32 PST 2021
dblaikie added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:3758
+ // Normally -gsplit-dwarf is only useful with -gN. For -gsplit-dwarf in the
+ // backend phase of a distributed ThinLTO which does object file generation
+ // and no IR generation, -gN should not be needed. So allow -gsplit-dwarf with
----------------
tejohnson wrote:
> Better to simply check if the input type is IR/BC via types::isLLVMIR(Input.getType()). Technically you don't need ThinLTO to do a clang compile with bitcode input. Looks like Input can be passed down from the caller.
Good point! +1 to that.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94647/new/
https://reviews.llvm.org/D94647
More information about the cfe-commits
mailing list