diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-02-22 16:29:50 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-02-22 16:29:50 +0000 |
commit | 896289277da513296a942cf4ea5891e4417c6168 (patch) | |
tree | c28a3cdbb689a7b5b8a4e373ede190d1b4b45175 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 46f939c1183560064effc6b838ffdc397df265ac (diff) | |
download | llvm-896289277da513296a942cf4ea5891e4417c6168.zip llvm-896289277da513296a942cf4ea5891e4417c6168.tar.gz llvm-896289277da513296a942cf4ea5891e4417c6168.tar.bz2 |
CodeGen: use COMDAT for block copy/destroy helpers
SVN r339438 added support to deduplicate the helpers by using a consistent
naming scheme and using LinkOnceODR semantics. This works on ELF by means of
weak linking semantics, and entirely does not work on PE/COFF where you end up
with multiply defined strong symbols, which is a strong error on PE/COFF.
Assign the functions a COMDAT group so that they can be uniqued by the linker.
This fixes the use of blocks in CoreFoundation on Windows.
llvm-svn: 354678
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions