mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into next
This commit is contained in:
@@ -650,6 +650,24 @@ void ModuleFile::loadDerivativeFunctionConfigurations(
|
||||
}
|
||||
}
|
||||
|
||||
Optional<Fingerprint>
|
||||
ModuleFile::loadFingerprint(const IterableDeclContext *IDC) const {
|
||||
PrettyStackTraceDecl trace("loading fingerprints for", IDC->getDecl());
|
||||
|
||||
assert(IDC->wasDeserialized());
|
||||
assert(IDC->getDeclID() != 0);
|
||||
|
||||
if (!Core->DeclFingerprints) {
|
||||
return None;
|
||||
}
|
||||
|
||||
auto it = Core->DeclFingerprints->find(IDC->getDeclID());
|
||||
if (it == Core->DeclFingerprints->end()) {
|
||||
return None;
|
||||
}
|
||||
return *it;
|
||||
}
|
||||
|
||||
TinyPtrVector<ValueDecl *>
|
||||
ModuleFile::loadNamedMembers(const IterableDeclContext *IDC, DeclBaseName N,
|
||||
uint64_t contextData) {
|
||||
|
||||
Reference in New Issue
Block a user