Skip to content

Commit 7c36683

Browse files
[FrontendTool] Include SPI dependencies in module trace.
1 parent b1ada5c commit 7c36683

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ static bool emitLoadedModuleTraceIfNeeded(ModuleDecl *mainModule,
427427
ModuleDecl::ImportFilter filter = ModuleDecl::ImportFilterKind::Public;
428428
filter |= ModuleDecl::ImportFilterKind::Private;
429429
filter |= ModuleDecl::ImportFilterKind::ImplementationOnly;
430+
filter |= ModuleDecl::ImportFilterKind::SPIAccessControl;
430431
filter |= ModuleDecl::ImportFilterKind::ShadowedBySeparateOverlay;
431432
SmallVector<ModuleDecl::ImportedModule, 8> imports;
432433
mainModule->getImportedModules(imports, filter);

test/Driver/loaded_module_trace_spi.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ import Module0
1717

1818
#endif
1919

20-
// FIXME: SPI imports are marked indirect in trace.
21-
// CHECK: "name":"Module0","path":"{{[^"]*}}","isImportedDirectly":false
20+
// CHECK: "name":"Module0","path":"{{[^"]*}}","isImportedDirectly":true

0 commit comments

Comments
 (0)