mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SR-11889: Using Located<T> instead of std::pair<SourceLoc, T>
This commit is contained in:
@@ -92,7 +92,7 @@ typedef SwiftInterfaceGenContext::Implementation::TextDecl TextDecl;
|
||||
typedef SwiftInterfaceGenContext::Implementation::SourceTextInfo SourceTextInfo;
|
||||
|
||||
static ModuleDecl *getModuleByFullName(ASTContext &Ctx, StringRef ModuleName) {
|
||||
SmallVector<std::pair<Identifier, SourceLoc>, 4>
|
||||
SmallVector<Located<Identifier>, 4>
|
||||
AccessPath;
|
||||
while (!ModuleName.empty()) {
|
||||
StringRef SubModuleName;
|
||||
@@ -103,7 +103,7 @@ static ModuleDecl *getModuleByFullName(ASTContext &Ctx, StringRef ModuleName) {
|
||||
}
|
||||
|
||||
static ModuleDecl *getModuleByFullName(ASTContext &Ctx, Identifier ModuleName) {
|
||||
return Ctx.getModule(std::make_pair(ModuleName, SourceLoc()));
|
||||
return Ctx.getModule({{ModuleName, SourceLoc()}});
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
Reference in New Issue
Block a user