[SourceManager] Rename line and column APIs for clarity

This commit is contained in:
Owen Voorhees
2020-05-21 12:54:07 -05:00
parent 0ab9fd718a
commit 45bc578ae5
42 changed files with 145 additions and 117 deletions

View File

@@ -864,7 +864,8 @@ int dumpEOFSourceLoc(const char *MainExecutablePath,
// To ensure the correctness of position when translated to line & column
// pair.
if (SourceMgr.getLineAndColumn(EndLoc) != AbPos.getLineAndColumn()) {
if (SourceMgr.getPresumedLineAndColumnForLoc(EndLoc) !=
AbPos.getLineAndColumn()) {
llvm::outs() << "locations should be identical";
return EXIT_FAILURE;
}