aboutsummaryrefslogtreecommitdiffstats
path: root/docs/yaml2obj.rst
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-08-23 00:23:24 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-08-23 00:23:24 +0000
commite0e66b9dfaca5f9cae3bba563b05a6230d64e21d (patch)
tree33213673bddcb74ce61fff5f38aaa18b374552d2 /docs/yaml2obj.rst
parent58a9b4388bcace0f332205f960c6c8705fb5a24b (diff)
downloadexternal_llvm-e0e66b9dfaca5f9cae3bba563b05a6230d64e21d.zip
external_llvm-e0e66b9dfaca5f9cae3bba563b05a6230d64e21d.tar.gz
external_llvm-e0e66b9dfaca5f9cae3bba563b05a6230d64e21d.tar.bz2
Update StripDeadDebugInfo to use DebugInfoFinder so that it is no longer stale to the point of not working and more resilient to debug info changes.
The current version of StripDeadDebugInfo became stale and no longer actually worked since it was expecting an older version of debug info. This patch updates it to use DebugInfoFinder and the modern DebugInfo classes as much as possible to make it more redundent to such changes. Additionally, the only place where that was avoided (the code where we replace the old sets with the new), I call verify on the DIContextUnit implying that if the format changes and my live set changes no longer make sense an assert will be hit. In order to ensure that that occurs I have included a test case. The actual stripping of the dead debug info follows the same strategy as was used before in this class: find the live set and replace the old set in the given compile unit (which may contain dead global variables/functions) with the new live one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/yaml2obj.rst')
0 files changed, 0 insertions, 0 deletions