]> granicus.if.org Git - clang/commit
Factor the trait for lookup into the on-based hash table of
authorDouglas Gregor <dgregor@apple.com>
Wed, 23 Jan 2013 18:53:14 +0000 (18:53 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 23 Jan 2013 18:53:14 +0000 (18:53 +0000)
commit479633ced74c887ee9ec5905b3cb0bb1a37349b0
tree075d6b706445961364ccfbaeef5bcd4b0b11cccc
parent440285cb2213a16a71b429ac0cb59fc19a2364f6
Factor the trait for lookup into the on-based hash table of
identifiers into two parts: the part that involves dealing with the
key (which can be re-used) and the ASTReader-specific part that
creates the IdentifierInfos. While I'm at it, StringRef'ify this code,
which was using pair<const char*, unsigned>. No functionality change.

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