mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adapt to llvm.org StringRef API change
This commit is contained in:
committed by
Michael Forster
parent
710799dd09
commit
259d78a350
@@ -621,7 +621,7 @@ static bool passCursorInfoForModule(ModuleEntity Mod,
|
||||
SwiftInterfaceGenMap &IFaceGenContexts,
|
||||
const CompilerInvocation &Invok,
|
||||
std::function<void(const RequestResult<CursorInfoData> &)> Receiver) {
|
||||
std::string Name = Mod.getName();
|
||||
std::string Name = Mod.getName().str();
|
||||
std::string FullName = Mod.getFullName();
|
||||
CursorInfoData Info;
|
||||
Info.Kind = SwiftLangSupport::getUIDForModuleRef();
|
||||
@@ -2155,7 +2155,7 @@ semanticRefactoring(StringRef Filename, SemanticRefactoringInfo Info,
|
||||
Opts.Range.Line = Info.Line;
|
||||
Opts.Range.Column = Info.Column;
|
||||
Opts.Range.Length = Info.Length;
|
||||
Opts.PreferredName = Info.PreferredName;
|
||||
Opts.PreferredName = Info.PreferredName.str();
|
||||
|
||||
RequestRefactoringEditConsumer EditConsumer(Receiver);
|
||||
refactorSwiftModule(MainModule, Opts, EditConsumer, EditConsumer);
|
||||
|
||||
Reference in New Issue
Block a user