]> granicus.if.org Git - clang/commit
NeXT: Emit protocol objects lazily.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 29 Oct 2008 22:36:39 +0000 (22:36 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 29 Oct 2008 22:36:39 +0000 (22:36 +0000)
commit0c0e7a65214d0b4af68336d6d2fdce525695146a
tree5bc1b3bb8073bd45c73ab9b0b26f62a571abef46
parentfdc0372eda30952b03f3fd4269dbc4b2acfdfa55
NeXT: Emit protocol objects lazily.
 - That is, the metadata for a protocol is only emitted if that
   protocol is actually used in the translation unit. This is
   important because Objective-C headers frequently contain a large
   number of protocol definitions, only a few of which will be used in
   any given file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58400 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjCMac.cpp
test/CodeGenObjC/protocols-lazy.m [new file with mode: 0644]