From 31530bae788dea5c79e72a1f99a56c3f5c6aa36f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 19 Jan 2009 07:32:13 +0000 Subject: SourceManager::getBufferData(SourceLocation) is dead, delete it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62495 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/SourceManager.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lib/Basic/SourceManager.cpp') diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index b053b160e1..989c3ac1fd 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -180,14 +180,8 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation SpellingLoc, return SourceLocation::getMacroLoc(MacroIDs.size()-1, 0); } -/// getBufferData - Return a pointer to the start and end of the character -/// data for the specified location. -std::pair -SourceManager::getBufferData(SourceLocation Loc) const { - const llvm::MemoryBuffer *Buf = getBuffer(getCanonicalFileID(Loc)); - return std::make_pair(Buf->getBufferStart(), Buf->getBufferEnd()); -} - +/// getBufferData - Return a pointer to the start and end of the source buffer +/// data for the specified FileID. std::pair SourceManager::getBufferData(FileID FID) const { const llvm::MemoryBuffer *Buf = getBuffer(FID); -- cgit v1.2.3-18-g5258