[Driver] Add -gno-split-dwarf which can disable debug fission
authorFangrui Song <i@maskray.me>
Tue, 8 Dec 2020 21:24:58 +0000 (13:24 -0800)
committerFangrui Song <i@maskray.me>
Tue, 8 Dec 2020 21:24:59 +0000 (13:24 -0800)
commit85c18d3521e87a22c742be512245665d6bb5bfe2
tree7983fc5c59e6adb7a0a61e29bc444005315f01fa
parentab3cbe4bc0d952ca58a3e2263629591ef898de3f
[Driver] Add -gno-split-dwarf which can disable debug fission

Currently when -gsplit-dwarf is specified (could be buried in a build system),
there is no convenient way to cancel debug fission without affecting the debug
information amount (all of -g0, -g1 -fsplit-dwarf-inlining and -gline-directives-only
can, but they affect the debug information amount).

Reviewed By: #debug-info, dblaikie

Differential Revision: https://reviews.llvm.org/D92809
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/split-debug.c