]> granicus.if.org Git - clang/commit
Introduce a fast path for the ASTReader's name lookup within a
authorDouglas Gregor <dgregor@apple.com>
Mon, 21 Jan 2013 15:25:38 +0000 (15:25 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 21 Jan 2013 15:25:38 +0000 (15:25 +0000)
commit5a04f9fc2b000da98fd903c8156034304bdadb2f
tree0bd659d6514e28faeac725451124f0ed9a03f627
parent032f25329565adfc542f001953565091eccba130
Introduce a fast path for the ASTReader's name lookup within a
DeclContext. When the DeclContext is of a kind that can only be
defined once and never updated, we limit the search to the module file
that conatins the lookup table. Provides a 15% speedup in one
modules-heavy source file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173050 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Serialization/ASTReader.h
lib/Serialization/ASTCommon.cpp
lib/Serialization/ASTCommon.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp