Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset.
It already works (and is useful with) macro locs as well. llvm-svn: 140057
This commit is contained in:
@@ -185,7 +185,7 @@ static FullSourceLoc ConvertBackendLocation(const llvm::SMDiagnostic &D,
|
||||
// Translate the offset into the file.
|
||||
unsigned Offset = D.getLoc().getPointer() - LBuf->getBufferStart();
|
||||
SourceLocation NewLoc =
|
||||
CSM.getLocForStartOfFile(FID).getFileLocWithOffset(Offset);
|
||||
CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset);
|
||||
return FullSourceLoc(NewLoc, CSM);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user