summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-19 07:30:29 +0000
committerChris Lattner <sabre@nondot.org>2009-01-19 07:30:29 +0000
commit91fda3945455c7d7a6be55ba14299b9f77fd6e85 (patch)
tree0552bdc300c88d31ac4a07ac32d8d791070278b9 /clang/lib/Basic/SourceManager.cpp
parent9976ee724148829123391cbc7d8f2faf491f348e (diff)
downloadbcm5719-llvm-91fda3945455c7d7a6be55ba14299b9f77fd6e85.tar.gz
bcm5719-llvm-91fda3945455c7d7a6be55ba14299b9f77fd6e85.zip
some minor cleanups to SourceManager, and eliminate the
SourceManager::getBuffer(SourceLocation) method. llvm-svn: 62494
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r--clang/lib/Basic/SourceManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp
index f793c978ccb..b053b160e1c 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<const char*, const char*>
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());
}
OpenPOWER on IntegriCloud