diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-04 01:06:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-04 01:06:56 +0000 |
commit | 88ea93e6b4943019d83f0ea90314b4f7a6d5c857 (patch) | |
tree | d93b3b11979c722ddff350620eb399358b16974d /clang/lib/Basic/SourceLocation.cpp | |
parent | fd9f635103ba88198bb90e11ea116c7a1ba3e228 (diff) | |
download | bcm5719-llvm-88ea93e6b4943019d83f0ea90314b4f7a6d5c857.tar.gz bcm5719-llvm-88ea93e6b4943019d83f0ea90314b4f7a6d5c857.zip |
lower the interface to getLineNumber like we did for
getColumnNumber. This fixes a FIXME in
SourceManager::getPresumedLoc because we now just decompose
the sloc once.
llvm-svn: 63701
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r-- | clang/lib/Basic/SourceLocation.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp index 93f60fc8742..8e068d6ac28 100644 --- a/clang/lib/Basic/SourceLocation.cpp +++ b/clang/lib/Basic/SourceLocation.cpp @@ -78,11 +78,6 @@ FullSourceLoc FullSourceLoc::getSpellingLoc() const { return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); } -unsigned FullSourceLoc::getLineNumber() const { - assert(isValid()); - return SrcMgr->getLineNumber(*this); -} - unsigned FullSourceLoc::getInstantiationLineNumber() const { assert(isValid()); return SrcMgr->getInstantiationLineNumber(*this); |