mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Teach SerializedSILLoader how to load all SILFunctions. Also add SerializedSILLoader::getAll().
getAll deserializes all SIL (except for globals). This enables us to iterate over the SILModules once instead of once for first SILFunctions, then VTables, then WitnessTables which is just inefficient. Swift SVN r14176
This commit is contained in:
@@ -54,6 +54,16 @@ SILVTable *SerializedSILLoader::lookupVTable(Identifier Name) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void SerializedSILLoader::getAll() {
|
||||
for (auto &Des : LoadedSILSections)
|
||||
Des->getAll();
|
||||
}
|
||||
|
||||
void SerializedSILLoader::getAllSILFunctions() {
|
||||
for (auto &Des : LoadedSILSections)
|
||||
Des->getAllSILFunctions();
|
||||
}
|
||||
|
||||
/// Deserialize all VTables in all SILModules.
|
||||
void SerializedSILLoader::getAllVTables() {
|
||||
for (auto &Des : LoadedSILSections)
|
||||
|
||||
Reference in New Issue
Block a user