mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[DefaultOverrides] SIL de/serialization.
This commit is contained in:
@@ -144,6 +144,14 @@ lookupDefaultWitnessTable(SILDefaultWitnessTable *WT) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
SILDefaultOverrideTable *
|
||||
SerializedSILLoader::lookupDefaultOverrideTable(SILDefaultOverrideTable *OT) {
|
||||
for (auto &Des : LoadedSILSections)
|
||||
if (auto oT = Des->lookupDefaultOverrideTable(OT))
|
||||
return oT;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
SILDifferentiabilityWitness *
|
||||
SerializedSILLoader::lookupDifferentiabilityWitness(
|
||||
SILDifferentiabilityWitnessKey key) {
|
||||
@@ -252,6 +260,12 @@ void SerializedSILLoader::getAllDefaultWitnessTables() {
|
||||
Des->getAllDefaultWitnessTables();
|
||||
}
|
||||
|
||||
/// Deserialize all DefaultOverrideTables in all SILModules.
|
||||
void SerializedSILLoader::getAllDefaultOverrideTables() {
|
||||
for (auto &Des : LoadedSILSections)
|
||||
Des->getAllDefaultOverrideTables();
|
||||
}
|
||||
|
||||
/// Deserialize all Properties in all SILModules.
|
||||
void SerializedSILLoader::getAllProperties() {
|
||||
for (auto &Des : LoadedSILSections)
|
||||
|
||||
Reference in New Issue
Block a user