]> granicus.if.org Git - clang/commit
Use a ContinuousRangeMap to map from the global macro definition ID in
authorDouglas Gregor <dgregor@apple.com>
Wed, 20 Jul 2011 01:29:15 +0000 (01:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 20 Jul 2011 01:29:15 +0000 (01:29 +0000)
commit14ad03b6f4350f062256757efc4149a7df94bdf9
tree965f88ba13bda870ce6241ea3717e93b2ff6b51d
parent96958cbe6fb423ab2446629ead5f1b138398433c
Use a ContinuousRangeMap to map from the global macro definition ID in
the AST reader down to the AST file + local ID, rather than walking
the PCH chain. More cleanup/generalization, although there is more
work to do for preprocessed entities. In particular, the
"preallocation" scheme for preprocessed entities is not going to work
well with late loading of PCH files, and it's likely we'll have to do
something akin to the SourceManager's negative/positive loading.

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