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)
commit90d344278474684fa12a21bdeb6965a9f0c9ce2f
tree246c7b68876be4e87c979f576fef5bad5d3fc5b7
parentbba95c08e4da6c2376a3e3aefe203a3e7f70a994
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.

llvm-svn: 173073
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaDeclObjC.cpp
clang/lib/Sema/SemaObjCProperty.cpp