Skip to content

Commit e0d67f4

Browse files
committed
[NFC] Refine the Return Type of SerializedModuleLoaderBase::loadAST
This grants access to the name of the loaded file to clients, which will be important for the upcoming cross-module incremental build experiments.
1 parent dd1ea9a commit e0d67f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Serialization/SerializedModuleLoader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class SerializedModuleLoaderBase : public ModuleLoader {
153153
///
154154
/// If the AST cannot be loaded and \p diagLoc is present, a diagnostic is
155155
/// printed. (Note that \p diagLoc is allowed to be invalid.)
156-
FileUnit *
156+
LoadedFile *
157157
loadAST(ModuleDecl &M, Optional<SourceLoc> diagLoc,
158158
StringRef moduleInterfacePath,
159159
std::unique_ptr<llvm::MemoryBuffer> moduleInputBuffer,

lib/Serialization/SerializedModuleLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ getOSAndVersionForDiagnostics(const llvm::Triple &triple) {
673673
return {osName, version};
674674
}
675675

676-
FileUnit *SerializedModuleLoaderBase::loadAST(
676+
LoadedFile *SerializedModuleLoaderBase::loadAST(
677677
ModuleDecl &M, Optional<SourceLoc> diagLoc,
678678
StringRef moduleInterfacePath,
679679
std::unique_ptr<llvm::MemoryBuffer> moduleInputBuffer,

0 commit comments

Comments
 (0)