SerializeLoc: ensure we can load serialized source locations when we are importing a module from a Swift interface file

This commit is contained in:
Xi Ge
2019-10-03 17:24:16 -07:00
parent d6dc7c3331
commit 212fe43d79
4 changed files with 43 additions and 26 deletions

View File

@@ -79,7 +79,7 @@ protected:
std::error_code
openModuleFiles(AccessPathElem ModuleID,
StringRef ModulePath, StringRef ModuleDocPath,
StringRef ModuleSourceInfoPath,
StringRef ModuleSourceInfoName,
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
std::unique_ptr<llvm::MemoryBuffer> *ModuleDocBuffer,
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer);
@@ -92,7 +92,7 @@ protected:
std::error_code
openModuleSourceInfoFile(AccessPathElem ModuleID,
StringRef ModulePath,
StringRef ModuleSourceInfoPath,
StringRef ModuleSourceInfoFileName,
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer);
/// If the module loader subclass knows that all options have been tried for