[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.
This commit is contained in:
Robert Widmann
2020-09-24 11:32:31 -06:00
parent dd1ea9a237
commit e0d67f4fb2
2 changed files with 2 additions and 2 deletions

View File

@@ -673,7 +673,7 @@ getOSAndVersionForDiagnostics(const llvm::Triple &triple) {
return {osName, version};
}
FileUnit *SerializedModuleLoaderBase::loadAST(
LoadedFile *SerializedModuleLoaderBase::loadAST(
ModuleDecl &M, Optional<SourceLoc> diagLoc,
StringRef moduleInterfacePath,
std::unique_ptr<llvm::MemoryBuffer> moduleInputBuffer,