]> granicus.if.org Git - clang/commit
[Clang] - Add '-gsplit-dwarf[=split,=single]' version for '-gsplit-dwarf' option.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 14 Nov 2018 09:22:16 +0000 (09:22 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 14 Nov 2018 09:22:16 +0000 (09:22 +0000)
commita152c7a4b7ba8f4cb9532ead9a38a7121db43d50
tree402c44e933300eb41500d17eaac3b356db56bf93
parenta0421d1226c45dfd4508ed6b6ee81ffb8357198e
[Clang] - Add '-gsplit-dwarf[=split,=single]' version for '-gsplit-dwarf' option.

The DWARF5 specification says(Appendix F.1):

"The sections that do not require relocation, however, can be
written to the relocatable object (.o) file but ignored by the
linker or they can be written to a separate DWARF object (.dwo)
file that need not be accessed by the linker."

The first part describes a single file split DWARF feature and there
is no way to trigger this behavior atm.
Fortunately, no many changes are required to keep *.dwo sections
in a .o, the patch does that.

Differential revision: https://reviews.llvm.org/D52296

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346837 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/CommonArgs.cpp
lib/Driver/ToolChains/CommonArgs.h
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/ToolChains/MinGW.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/split-debug-single-file.c [new file with mode: 0644]
test/Driver/split-debug.c
test/Driver/split-debug.s