mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SymbolGraph] Don't emit extension symbol graphs if empty
rdar://63058801
This commit is contained in:
@@ -74,6 +74,9 @@ symbolgraphgen::emitSymbolGraphForModule(ModuleDecl *M,
|
||||
Success |= serializeSymbolGraph(Walker.MainGraph, Options);
|
||||
|
||||
for (const auto &Entry : Walker.ExtendedModuleGraphs) {
|
||||
if (Entry.getValue()->empty()) {
|
||||
continue;
|
||||
}
|
||||
Success |= serializeSymbolGraph(*Entry.getValue(), Options);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user