This is an archive of the discontinued LLVM Phabricator instance.

Make -f[no-]split-dwarf-inlining CC1 default align with driver default (no inlining)
ClosedPublic

Authored by MaskRay on Mar 1 2021, 10:27 AM.

Details

Summary

This makes CC1 and driver defaults consistent.
In addition, for more common cases (-g is specified without -gsplit-dwarf), users will not see -fno-split-dwarf-inlining in CC1 options.

Verified that the below is still true:

  • clang -g => splitDebugInlining: false in DICompileUnit
  • clang -g -gsplit-dwarf => splitDebugInlining: false in DICompileUnit
  • clang -g -gsplit-dwarf -fsplit-dwarf-inlining => no splitDebugInlining: false

Diff Detail

Event Timeline

MaskRay created this revision.Mar 1 2021, 10:27 AM
MaskRay requested review of this revision.Mar 1 2021, 10:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2021, 10:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay edited the summary of this revision. (Show Details)Mar 1 2021, 10:29 AM
dblaikie accepted this revision.Mar 1 2021, 10:47 AM

Sounds alright - I guess this helps reduce -cc1 command lines when they contain the more common/default value? (might be worth mentioning that in the commit to explain the motivation for the change)

This revision is now accepted and ready to land.Mar 1 2021, 10:47 AM
MaskRay edited the summary of this revision. (Show Details)Mar 1 2021, 10:51 AM
MaskRay edited the summary of this revision. (Show Details)Mar 1 2021, 10:54 AM
This revision was landed with ongoing or failed builds.Mar 1 2021, 10:55 AM
This revision was automatically updated to reflect the committed changes.