diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-19 07:32:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-19 07:32:13 +0000 |
commit | 7e343b2161cc2b20ff088fa4db8e5251a507d16c (patch) | |
tree | 05a9f35ddefac929f19bea986c1e496a139c13be /clang/lib/Basic/SourceManager.cpp | |
parent | 91fda3945455c7d7a6be55ba14299b9f77fd6e85 (diff) | |
download | bcm5719-llvm-7e343b2161cc2b20ff088fa4db8e5251a507d16c.tar.gz bcm5719-llvm-7e343b2161cc2b20ff088fa4db8e5251a507d16c.zip |
SourceManager::getBufferData(SourceLocation) is dead, delete it.
llvm-svn: 62495
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index b053b160e1c..989c3ac1fdf 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/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<const char*, const char*> -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<const char*, const char*> SourceManager::getBufferData(FileID FID) const { const llvm::MemoryBuffer *Buf = getBuffer(FID); |