mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Explicit Module Loader] Refactor ESWL to use findModule instead of findModuleFilesInDirectory
And add isFramework to the Explicit Module Map and its parser.
This commit is contained in:
@@ -682,7 +682,6 @@ FileUnit *SerializedModuleLoaderBase::loadAST(
|
||||
std::unique_ptr<llvm::MemoryBuffer> moduleSourceInfoInputBuffer,
|
||||
bool isFramework) {
|
||||
assert(moduleInputBuffer);
|
||||
|
||||
StringRef moduleBufferID = moduleInputBuffer->getBufferIdentifier();
|
||||
StringRef moduleDocBufferID;
|
||||
if (moduleDocInputBuffer)
|
||||
@@ -993,7 +992,6 @@ SerializedModuleLoaderBase::loadModule(SourceLoc importLoc,
|
||||
|
||||
StringRef moduleInterfacePathStr =
|
||||
Ctx.AllocateCopy(moduleInterfacePath.str());
|
||||
|
||||
auto *file =
|
||||
loadAST(*M, moduleID.Loc, moduleInterfacePathStr,
|
||||
std::move(moduleInputBuffer), std::move(moduleDocInputBuffer),
|
||||
|
||||
Reference in New Issue
Block a user