Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions include/swift/ASTSectionImporter/ASTSectionImporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,5 @@ namespace swift {
parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
StringRef Data, const llvm::Triple &filter);

// An old version temporarily left for remaining call site.
// TODO: remove this once the other version is committed and used.
bool parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
StringRef Data, const llvm::Triple &filter,
SmallVectorImpl<std::string> &foundModules);

}
#endif
14 changes: 0 additions & 14 deletions lib/ASTSectionImporter/ASTSectionImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,3 @@ swift::parseASTSection(MemoryBufferSerializedModuleLoader &Loader,

return foundModules;
}

bool swift::parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
StringRef buf,
const llvm::Triple &filter,
SmallVectorImpl<std::string> &foundModules) {
auto Result = parseASTSection(Loader, buf, filter);
if (auto E = Result.takeError()) {
llvm::dbgs() << toString(std::move(E));
return false;
}
for (auto m : *Result)
foundModules.push_back(m);
return true;
}