[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.
George Rimar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 20 03:46:57 PDT 2018
grimar created this revision.
grimar added reviewers: dblaikie, echristo, probinson, compnerd.
Herald added subscribers: JDevlieghere, aprantl.
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 I think.
Fortunately, no many changes are required to keep *.dwo sections in a .o, the patch does that.
Not sure who is an appropriate reviewer for that.
https://reviews.llvm.org/D52296
Files:
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/BackendUtil.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
test/Driver/split-debug.c
test/Driver/split-debug.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52296.166255.patch
Type: text/x-patch
Size: 9350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180920/f983f40d/attachment.bin>
More information about the cfe-commits
mailing list