]> granicus.if.org Git - clang/commit
Eliminate the oddly-named Sema::ComparePropertiesInBaseAndSuper, which
authorDouglas Gregor <dgregor@apple.com>
Mon, 21 Jan 2013 19:05:22 +0000 (19:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 21 Jan 2013 19:05:22 +0000 (19:05 +0000)
commitaabd094cf694039fe823987e133af7ac25cb9711
tree3a14e0f3b77c4ba167042bb0395c85ea9521bcb7
parenteb8fc58241e1781a77c958764e16a4c402e4d707
Eliminate the oddly-named Sema::ComparePropertiesInBaseAndSuper, which
did a redundant traversal of the lexical declarations in the
superclass. Instead, when we declare a new property, look into the
superclass to see whether we're redeclaring the property. Goot for 1%
of -fsyntax-only time on Cocoa.h and a little less than 3% on my
modules test case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173073 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaObjCProperty.cpp