@@ -340,7 +340,7 @@ void swift::simple_display(llvm::raw_ostream &out, const CursorInfoOwner &owner)
340
340
return ;
341
341
auto &SM = owner.File ->getASTContext ().SourceMgr ;
342
342
out << SM.getIdentifierForBuffer (*owner.File ->getBufferID ());
343
- auto LC = SM.getPresumedLineAndColumnForLoc (owner.Loc );
343
+ auto LC = SM.getLineAndColumnInBuffer (owner.Loc );
344
344
out << " :" << LC.first << " :" << LC.second ;
345
345
}
346
346
@@ -351,7 +351,7 @@ void swift::ide::simple_display(llvm::raw_ostream &out,
351
351
out << " Resolved cursor info at " ;
352
352
auto &SM = info.SF ->getASTContext ().SourceMgr ;
353
353
out << SM.getIdentifierForBuffer (*info.SF ->getBufferID ());
354
- auto LC = SM.getPresumedLineAndColumnForLoc (info.Loc );
354
+ auto LC = SM.getLineAndColumnInBuffer (info.Loc );
355
355
out << " :" << LC.first << " :" << LC.second ;
356
356
}
357
357
@@ -1098,8 +1098,8 @@ void swift::simple_display(llvm::raw_ostream &out,
1098
1098
return ;
1099
1099
auto &SM = owner.File ->getASTContext ().SourceMgr ;
1100
1100
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 );
1103
1103
out << " : (" << SLC.first << " :" << SLC.second << " , "
1104
1104
<< ELC.first << " :" << ELC.second << " )" ;
1105
1105
}
0 commit comments