Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset.

It already works (and is useful with) macro locs as well.

llvm-svn: 140057
This commit is contained in:
Argyrios Kyrtzidis
2011-09-19 20:40:19 +00:00
parent c284238aa2
commit e6e67deeed
26 changed files with 88 additions and 89 deletions

View File

@@ -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);
}