Skip to content

Commit 17143cb

Browse files
committed
[NFC] Split ModuleTrace Infrastructure out of FrontendTool
1 parent adacecb commit 17143cb

File tree

7 files changed

+777
-770
lines changed

7 files changed

+777
-770
lines changed

lib/FrontendTool/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ set_swift_llvm_is_available()
22
add_swift_host_library(swiftFrontendTool STATIC
33
FrontendTool.cpp
44
ImportedModules.cpp
5+
LoadedModuleTrace.cpp
56
MakeStyleDependencies.cpp
67
ScanDependencies.cpp
78
TBD.cpp)

lib/FrontendTool/Dependencies.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@ class FrontendOptions;
2222
class InputFile;
2323
class ModuleDecl;
2424

25+
/// Emit the names of the modules imported by \c mainModule.
26+
bool emitImportedModules(ModuleDecl *mainModule, const FrontendOptions &opts);
2527
bool emitMakeDependenciesIfNeeded(DiagnosticEngine &diags,
2628
DependencyTracker *depTracker,
2729
const FrontendOptions &opts,
2830
const InputFile &input);
31+
bool emitLoadedModuleTraceIfNeeded(ModuleDecl *mainModule,
32+
DependencyTracker *depTracker,
33+
const FrontendOptions &opts,
34+
const InputFile &input);
35+
2936
} // end namespace swift
3037

3138
#endif

0 commit comments

Comments
 (0)