]> granicus.if.org Git - clang/commit
[Clang] Remove unused -split-dwarf and obsolete -enable-split-dwarf
authorAaron Puchert <aaron.puchert@sap.com>
Wed, 26 Jun 2019 21:36:35 +0000 (21:36 +0000)
committerAaron Puchert <aaron.puchert@sap.com>
Wed, 26 Jun 2019 21:36:35 +0000 (21:36 +0000)
commitb30c6b62c999743cb5c28e202891b21560f1934f
treea4c20c72028c93c0b807dcc8890668fb02fc2989
parent48a13dc0a697c2f072dd607893135f5ad9712d36
[Clang] Remove unused -split-dwarf and obsolete -enable-split-dwarf

Summary:
The changes in D59673 made the choice redundant, since we can achieve
single-file split DWARF just by not setting an output file name.
Like llc we can also derive whether to enable Split DWARF from whether
-split-dwarf-file is set, so we don't need the flag at all anymore.

The test CodeGen/split-debug-filename.c distinguished between having set
or not set -enable-split-dwarf with -split-dwarf-file, but we can
probably just always emit the metadata into the IR.

The flag -split-dwarf wasn't used at all anymore.

Reviewers: dblaikie, echristo

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D63167

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364479 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/CodeGenOptions.def
include/clang/Basic/CodeGenOptions.h
include/clang/Driver/CC1Options.td
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/split-debug-filename.c
test/CodeGen/split-debug-output.c
test/CodeGen/split-debug-single-file.c
test/Driver/split-debug.c