]> granicus.if.org Git - clang/commit
Set a special flag in class metadata when an Objective-C class
authorJohn McCall <rjmccall@apple.com>
Wed, 17 Oct 2012 04:53:31 +0000 (04:53 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 17 Oct 2012 04:53:31 +0000 (04:53 +0000)
commitb03527a9a395168762ad8e25e59a7a272dd74561
treea4a42c8954972b200a301649c487a5869c32739a
parent621915c7a454307ad06ed2363379d52e2695a870
Set a special flag in class metadata when an Objective-C class
has ivars that require destruction, but none that require anything
except zero-initialization.  This is common in ARC and (when true
throughout a class hierarchy) permits the elimination of an
unnecessary message-send during allocation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166088 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/CodeGenObjC/arc.m