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)
commitbfd73d74b9f8aa92dd71994a5a19794b7ca4fb01
treed24c919bd732e6d9f469c59802c810174011a0bc
parentcc8fbbf129cf0619f3c796062571eb30e5c3735e
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.

llvm-svn: 173283
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderInternals.h