From 91fda3945455c7d7a6be55ba14299b9f77fd6e85 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 19 Jan 2009 07:30:29 +0000 Subject: some minor cleanups to SourceManager, and eliminate the SourceManager::getBuffer(SourceLocation) method. llvm-svn: 62494 --- clang/lib/Basic/SourceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Basic/SourceManager.cpp') diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index f793c97..b053b16 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -184,7 +184,7 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation SpellingLoc, /// data for the specified location. std::pair SourceManager::getBufferData(SourceLocation Loc) const { - const llvm::MemoryBuffer *Buf = getBuffer(Loc); + const llvm::MemoryBuffer *Buf = getBuffer(getCanonicalFileID(Loc)); return std::make_pair(Buf->getBufferStart(), Buf->getBufferEnd()); } -- cgit v1.1