diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 22:59:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 22:59:51 +0000 |
commit | 4abb87ef149b98b5762eadaaf10c1ccf35dc7c41 (patch) | |
tree | 592ae39964841356a865f5cc987ef0887c03b14c /lib/Basic | |
parent | 0cf7bb937d5ed21118eeb45a93eb916723cc75a1 (diff) |
elimiante FullSourceLoc::getCanonicalFileID
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic')
-rw-r--r-- | lib/Basic/SourceLocation.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Basic/SourceLocation.cpp b/lib/Basic/SourceLocation.cpp index 41ada637bd..c68cb8ba92 100644 --- a/lib/Basic/SourceLocation.cpp +++ b/lib/Basic/SourceLocation.cpp @@ -98,9 +98,8 @@ bool FullSourceLoc::isInSystemHeader() const { return SrcMgr->isInSystemHeader(Loc); } - -const char * FullSourceLoc::getCharacterData() const { - assert (isValid()); +const char *FullSourceLoc::getCharacterData() const { + assert(isValid()); return SrcMgr->getCharacterData(Loc); } @@ -109,10 +108,6 @@ const llvm::MemoryBuffer* FullSourceLoc::getBuffer() const { return SrcMgr->getBuffer(Loc.getFileID()); } -unsigned FullSourceLoc::getCanonicalFileID() const { - return SrcMgr->getCanonicalFileID(Loc); -} - void FullSourceLoc::dump() const { if (!isValid()) { fprintf(stderr, "Invalid Loc\n"); |