]> granicus.if.org Git - clang/commit
PR14569: Omit debug info for thunks
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 27 Aug 2013 05:21:11 +0000 (05:21 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 27 Aug 2013 05:21:11 +0000 (05:21 +0000)
commit1942e1869d14ae6e810c11fb4b41d6ae31887a3f
tree79d3e68d9a4af495489fee91e20a48a8bb7f587c
parent54b00127b92688ee1ee2f2ee559f9cca63e67fcd
PR14569: Omit debug info for thunks

This was added in r166676 based on PR13942 on the basis that tools may
need debug information for any executable code/function for some fairly
broad/non-specific purposes. It seems to me (as noted in PR14569) that
the major/only purpose is in backtraces, which should generally not
apply to thunks as they won't appear in the stack themselves. By
removing them we fix PR14569 and reduce the size of Clang's debug info.

Strangely enough this doesn't seem to have a substantial impact on
Clang's self-hosted debug info (at least looking at DWO file size) size
at all. Not sure if I failed to test this correctly but I only observed
a 0.004% change in DWO file size over Clang+LLVM.

With thanks to Dinesh Dwivedi for work on this PR.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGVTables.cpp
test/CodeGenCXX/debug-info-thunk.cpp