[PATCH] D59923: [Driver] Simplify -g level computation and its interaction with -gsplit-dwarf
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 28 11:22:48 PDT 2019
dblaikie requested changes to this revision.
dblaikie added a comment.
This revision now requires changes to proceed.
What's the general motivation for this work/changes?
> -gmlt -gsplit-dwarf -fno-split-dwarf-inlining => special: 1 (before) 2 (after)
This ^ is the only semantic change due to this refactoring?
There's a desire to be able to compose gmlt+gsplit-dwarf, /if/ -fno-split-dwarf-inlining is enabled. (for context, -fno-split-dwarf-inlining is the default in Google's optimized builds, since split-dwarf-inlining was never implemented in GCC & we didn't want to regress object size when switching from GCC to Clang (& no one had complained about that missing functionality))
So with -fno-split-dwarf-inlining, there's value in using gmlt with gsplit-dwarf (it reduces the size of the .dwo files - reducing the inputs/size of dwp, etc).
& it sounds like this change breaks that scenario?
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59923/new/
https://reviews.llvm.org/D59923
More information about the cfe-commits
mailing list