diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-20 01:44:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-20 01:44:05 +0000 |
commit | 67762a35dca6202d2272db02d0b8740728e3aa8f (patch) | |
tree | 49f72f6cf72b3a6909e35d33a047ab985eca12b5 /lib/AST/ExprConstant.cpp | |
parent | 15423b066d695b8713dd70efa7b37e95290459e5 (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