summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-thunk.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-08-27 05:21:11 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-08-27 05:21:11 +0000
commit1942e1869d14ae6e810c11fb4b41d6ae31887a3f (patch)
tree79d3e68d9a4af495489fee91e20a48a8bb7f587c /test/CodeGenCXX/debug-info-thunk.cpp
parent54b00127b92688ee1ee2f2ee559f9cca63e67fcd (diff)
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
Diffstat (limited to 'test/CodeGenCXX/debug-info-thunk.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-thunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/debug-info-thunk.cpp b/test/CodeGenCXX/debug-info-thunk.cpp
index 394ebd8291..b2bb5a9e39 100644
--- a/test/CodeGenCXX/debug-info-thunk.cpp
+++ b/test/CodeGenCXX/debug-info-thunk.cpp
@@ -14,4 +14,4 @@ struct C : A, B {
void C::f() { }
-// CHECK: [ DW_TAG_subprogram ] [line 15] [def] [_ZThn{{4|8}}_N1C1fEv]
+// CHECK-NOT: [ DW_TAG_subprogram ] [line 15] [def] [_ZThn{{4|8}}_N1C1fEv]