CodeGen: mark protocols as common data
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 25 Oct 2016 14:50:44 +0000 (14:50 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 25 Oct 2016 14:50:44 +0000 (14:50 +0000)
commit9ccc7ad62d319127670e70e8082a6018987ed25a
treee607ea44ab9d3dbf88c1549dd40ca9ccc89e5e74
parent5c3c9707c32923e5acae0f7d2253e60da4e89096
CodeGen: mark protocols as common data

This allows for the coalescing of the protocol declarations.  When the protocols
are declared in headers, multiple definitions of the protocol would be emitted.
Marking them as common data indicates that any one can be selected.

llvm-svn: 285073
clang/lib/CodeGen/CGObjCMac.cpp
clang/test/CodeGenObjC/protocol-comdat.m [new file with mode: 0644]