@@ -340,7 +340,7 @@ void swift::simple_display(llvm::raw_ostream &out, const CursorInfoOwner &owner)
340340 return ;
341341 auto &SM = owner.File ->getASTContext ().SourceMgr ;
342342 out << SM.getIdentifierForBuffer (*owner.File ->getBufferID ());
343- auto LC = SM.getPresumedLineAndColumnForLoc (owner.Loc );
343+ auto LC = SM.getLineAndColumnInBuffer (owner.Loc );
344344 out << " :" << LC.first << " :" << LC.second ;
345345}
346346
@@ -351,7 +351,7 @@ void swift::ide::simple_display(llvm::raw_ostream &out,
351351 out << " Resolved cursor info at " ;
352352 auto &SM = info.SF ->getASTContext ().SourceMgr ;
353353 out << SM.getIdentifierForBuffer (*info.SF ->getBufferID ());
354- auto LC = SM.getPresumedLineAndColumnForLoc (info.Loc );
354+ auto LC = SM.getLineAndColumnInBuffer (info.Loc );
355355 out << " :" << LC.first << " :" << LC.second ;
356356}
357357
@@ -1098,8 +1098,8 @@ void swift::simple_display(llvm::raw_ostream &out,
10981098 return ;
10991099 auto &SM = owner.File ->getASTContext ().SourceMgr ;
11001100 out << SM.getIdentifierForBuffer (*owner.File ->getBufferID ());
1101- auto SLC = SM.getPresumedLineAndColumnForLoc (owner.StartLoc );
1102- auto ELC = SM.getPresumedLineAndColumnForLoc (owner.EndLoc );
1101+ auto SLC = SM.getLineAndColumnInBuffer (owner.StartLoc );
1102+ auto ELC = SM.getLineAndColumnInBuffer (owner.EndLoc );
11031103 out << " : (" << SLC.first << " :" << SLC.second << " , "
11041104 << ELC.first << " :" << ELC.second << " )" ;
11051105}
0 commit comments