Serialization: Implement LocalDeclTableInfo::GetExternalKey()

This allows iterating over serialized decl tables, which is useful
for debugging.
This commit is contained in:
Slava Pestov
2020-04-09 16:14:56 -04:00
parent 41ccedc999
commit 43ee8ae282

View File

@@ -597,6 +597,10 @@ public:
return ID;
}
external_key_type GetExternalKey(internal_key_type ID) {
return ID;
}
hash_value_type ComputeHash(internal_key_type key) {
return llvm::djbHash(key, SWIFTMODULE_HASH_SEED);
}