mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "serialization: obfuscate the serialized search paths"
This commit is contained in:
committed by
GitHub
parent
8a7ca32cf0
commit
11d5d6d4ca
@@ -361,7 +361,6 @@ ModuleFile::getModuleName(ASTContext &Ctx, StringRef modulePath,
|
||||
serialization::ValidationInfo loadInfo = ModuleFileSharedCore::load(
|
||||
modulePath.str(), std::move(newBuf), nullptr, nullptr,
|
||||
/*isFramework*/ isFramework, Ctx.SILOpts.EnableOSSAModules,
|
||||
Ctx.SearchPathOpts.DeserializedPathRecoverer,
|
||||
loadedModuleFile);
|
||||
Name = loadedModuleFile->Name.str();
|
||||
return std::move(moduleBuf.get());
|
||||
@@ -1000,13 +999,6 @@ Optional<CommentInfo> ModuleFile::getCommentForDecl(const Decl *D) const {
|
||||
return getCommentForDeclByUSR(USRBuffer.str());
|
||||
}
|
||||
|
||||
void ModuleFile::collectSerializedSearchPath(
|
||||
llvm::function_ref<void(StringRef)> callback) const {
|
||||
for (auto path: Core->SearchPaths) {
|
||||
callback(path.Path);
|
||||
}
|
||||
}
|
||||
|
||||
void ModuleFile::collectBasicSourceFileInfo(
|
||||
llvm::function_ref<void(const BasicSourceFileInfo &)> callback) const {
|
||||
if (Core->SourceFileListData.empty())
|
||||
|
||||
Reference in New Issue
Block a user