aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WindowsResource.cpp
diff options
context:
space:
mode:
authorKeno Fischer <keno@alumni.harvard.edu>2017-05-30 18:28:30 +0000
committerKeno Fischer <keno@alumni.harvard.edu>2017-05-30 18:28:30 +0000
commit945dc1d2d180f17002768d7ea3180d7bc5ddba08 (patch)
treeddfc434d0a5216d2af0c6de26b5f2b3d66003117 /llvm/lib/Object/WindowsResource.cpp
parent72fb6a87fb2e2f87a192aa9d80eefc484bf3e41a (diff)
downloadllvm-945dc1d2d180f17002768d7ea3180d7bc5ddba08.zip
llvm-945dc1d2d180f17002768d7ea3180d7bc5ddba08.tar.gz
llvm-945dc1d2d180f17002768d7ea3180d7bc5ddba08.tar.bz2
[Cloning] Take another pass at properly cloning debug info
Summary: In rL302576, DISubprograms gained the constraint that a !dbg attachments to functions must have a 1:1 mapping to DISubprograms. As part of that change, the function cloning support was adjusted to attempt to enforce this invariant during cloning. However, there were several problems with the implementation. Part of these were fixed in rL304079. However, there was a more fundamental problem with these changes, namely that it bypasses the matadata value map, causing the cloned metadata to be a mix of metadata pointing to the new suprogram (where manual code was added to fix those up) and the old suprogram (where this was not the case). This mismatch could cause a number of different assertion failures in the DWARF emitter. Some of these are given at https://github.com/JuliaLang/julia/issues/22069, but some others have been observed as well. Attempt to rectify this by partially reverting the manual DI metadata fixup, and instead using the standard value map approach. To retain the desired semantics of not duplicating the compilation unit and inlined subprograms, explicitly freeze these in the value map. Reviewers: dblaikie, aprantl, GorNishanov, echristo Reviewed By: aprantl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D33655 llvm-svn: 304226
Diffstat (limited to 'llvm/lib/Object/WindowsResource.cpp')
0 files changed, 0 insertions, 0 deletions