]> granicus.if.org Git - clang/commit
CodeGen: handle missed case of COMDAT handling
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 29 Jun 2017 00:54:44 +0000 (00:54 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 29 Jun 2017 00:54:44 +0000 (00:54 +0000)
commit64b75be74b549be56038f8795788ebb73714709e
tree67d6c07156c3d8f0e4ed4276d2a6a6bacd09df84
parent145692ef46de14b98bb54ed3ed098b2b69dd2b9a
CodeGen: handle missed case of COMDAT handling

When Protocol references are constructed, we need to add the reference
symbol to a COMDAT group on non-MachO object file formats (MachO handles
this by having a coalesced attribute).  This adds the missing case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306622 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjCMac.cpp
test/CodeGenObjC/protocol-comdat.m