diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-19 07:30:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-19 07:30:29 +0000 |
commit | 91fda3945455c7d7a6be55ba14299b9f77fd6e85 (patch) | |
tree | 0552bdc300c88d31ac4a07ac32d8d791070278b9 /clang/lib/Basic/SourceLocation.cpp | |
parent | 9976ee724148829123391cbc7d8f2faf491f348e (diff) | |
download | llvm-91fda3945455c7d7a6be55ba14299b9f77fd6e85.zip llvm-91fda3945455c7d7a6be55ba14299b9f77fd6e85.tar.gz llvm-91fda3945455c7d7a6be55ba14299b9f77fd6e85.tar.bz2 |
some minor cleanups to SourceManager, and eliminate the
SourceManager::getBuffer(SourceLocation) method.
llvm-svn: 62494
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r-- | clang/lib/Basic/SourceLocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp index dcfd547..1f5804ff 100644 --- a/clang/lib/Basic/SourceLocation.cpp +++ b/clang/lib/Basic/SourceLocation.cpp @@ -111,7 +111,7 @@ const char *FullSourceLoc::getCharacterData() const { const llvm::MemoryBuffer* FullSourceLoc::getBuffer() const { assert(isValid()); - return SrcMgr->getBuffer(*this); + return SrcMgr->getBuffer(SrcMgr->getCanonicalFileID(*this)); } void FullSourceLoc::dump() const { |