summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReaderInternals.h
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-04-16 02:51:46 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-04-16 02:51:46 +0000
commit2bd0ab2b11e173aa970bb531cf98750d7ee72287 (patch)
treed1a444b68d1319ba3e17a7bd7565d014c180665d /clang/lib/Serialization/ASTReaderInternals.h
parentccc7e42b1f190676f9b42edf202e6da0a7f364b9 (diff)
downloadbcm5719-llvm-2bd0ab2b11e173aa970bb531cf98750d7ee72287.tar.gz
bcm5719-llvm-2bd0ab2b11e173aa970bb531cf98750d7ee72287.zip
Implement the all_lookups_iterator for PCH as a follow-up to r153970. This
includes a patch from Matthias Kleine with a regression testcase! Adds a new iterator 'data_iterator' to OnDiskHashTable which doesn't try to reconstruct the external_key from the internal_key, which is useful for traits that don't store enough information to do that mapping in their key. Also deletes the 'item_iterator' from OnDiskHashTable as dead code. llvm-svn: 154784
Diffstat (limited to 'clang/lib/Serialization/ASTReaderInternals.h')
-rw-r--r--clang/lib/Serialization/ASTReaderInternals.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Serialization/ASTReaderInternals.h b/clang/lib/Serialization/ASTReaderInternals.h
index da90c3400a2..e5159e95263 100644
--- a/clang/lib/Serialization/ASTReaderInternals.h
+++ b/clang/lib/Serialization/ASTReaderInternals.h
@@ -57,8 +57,7 @@ public:
typedef DeclarationName external_key_type;
typedef DeclNameKey internal_key_type;
- explicit ASTDeclContextNameLookupTrait(ASTReader &Reader,
- ModuleFile &F)
+ explicit ASTDeclContextNameLookupTrait(ASTReader &Reader, ModuleFile &F)
: Reader(Reader), F(F) { }
static bool EqualKey(const internal_key_type& a,
@@ -68,9 +67,8 @@ public:
unsigned ComputeHash(const DeclNameKey &Key) const;
internal_key_type GetInternalKey(const external_key_type& Name) const;
- external_key_type GetExternalKey(const internal_key_type& Key) const;
- static std::pair<unsigned, unsigned>
+ static std::pair<unsigned, unsigned>
ReadKeyDataLength(const unsigned char*& d);
internal_key_type ReadKey(const unsigned char* d, unsigned);
OpenPOWER on IntegriCloud