aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-20 01:44:05 +0000
committerChris Lattner <sabre@nondot.org>2009-02-20 01:44:05 +0000
commit67762a35dca6202d2272db02d0b8740728e3aa8f (patch)
tree49f72f6cf72b3a6909e35d33a047ab985eca12b5 /lib/AST/ExprConstant.cpp
parent15423b066d695b8713dd70efa7b37e95290459e5 (diff)
optimize the 'StoredDeclsMap' for the common case where there is
exactly one decl with a specific name in a specific context. This avoids a bunch of malloc traffic and shrinks StoredDeclsMap to hold one pointer instead of 3 words (for a std::vector). This speeds up -fsyntax-only on cocoa.h with PTH by ~7.3%. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions