[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

George Rimar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 21 07:24:42 PDT 2018


grimar added a comment.

We want to take the benefit that debug fission provides, but keep the debug information in the objects.
That is a bit less intrusive way than using regular split dwarf flow.

For a regular build and debug cycle that allows the linker to do minimal processing of the .debug_str.
Since .debug_str.dwo is ignored, that allows to significantly reduce the link time,
as strings processing is slow and string sections are large by themselves to handle them.

And at the same time the build system still does not see anything unusual/strange
as it sees only .o files like it is just a regular non-split-dwarf flow.


https://reviews.llvm.org/D52296





More information about the cfe-commits mailing list