]> granicus.if.org Git - clang/commit
Move Sema::RequireCompleteType() and Sema::RequireCompleteExprType()
authorDouglas Gregor <dgregor@apple.com>
Fri, 4 May 2012 16:32:21 +0000 (16:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 4 May 2012 16:32:21 +0000 (16:32 +0000)
commitd10099e5c8238fa0327f03921cf2e3c8975c881e
tree5a13e7a0ddc7b1c7866bbf826401161188218b45
parentbbba25fa8e388e82e04f66784c2fc9f89b901abe
Move Sema::RequireCompleteType() and Sema::RequireCompleteExprType()
off PartialDiagnostic. PartialDiagnostic is rather heavyweight for
something that is in the critical path and is rarely used. So, switch
over to an abstract-class-based callback mechanism that delays most of
the work until a diagnostic is actually produced. Good for ~11k code
size reduction in the compiler and 1% speedup in -fsyntax-only on the
code in <rdar://problem/11004361>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156176 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/clang/Sema/Sema.h
lib/Sema/SemaCXXScopeSpec.cpp
lib/Sema/SemaCast.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaExceptionSpec.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaExprMember.cpp
lib/Sema/SemaExprObjC.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaObjCProperty.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaPseudoObject.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaType.cpp