Skip to content

Commit 43ee8ae

Browse files
committed
Serialization: Implement LocalDeclTableInfo::GetExternalKey()
This allows iterating over serialized decl tables, which is useful for debugging.
1 parent 41ccedc commit 43ee8ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Serialization/ModuleFile.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,10 @@ class ModuleFile::LocalDeclTableInfo {
597597
return ID;
598598
}
599599

600+
external_key_type GetExternalKey(internal_key_type ID) {
601+
return ID;
602+
}
603+
600604
hash_value_type ComputeHash(internal_key_type key) {
601605
return llvm::djbHash(key, SWIFTMODULE_HASH_SEED);
602606
}

0 commit comments

Comments
 (0)