diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-04 00:55:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-04 00:55:58 +0000 |
commit | e4ad417664849f3d50da7174a2f7e920d5577370 (patch) | |
tree | c08ac61671333d326396743d9b8258975186effd /clang/lib/Basic/SourceLocation.cpp | |
parent | 310c5b1ab15bd8d3a648abd19823379d7676337e (diff) | |
download | llvm-e4ad417664849f3d50da7174a2f7e920d5577370.zip llvm-e4ad417664849f3d50da7174a2f7e920d5577370.tar.gz llvm-e4ad417664849f3d50da7174a2f7e920d5577370.tar.bz2 |
make SM::getColumnNumber take a predecomposed FileID/offset, which
makes it clear to clients that they have to pick an instantiation
or spelling location before calling it and allows optimization based
on that.
llvm-svn: 63698
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r-- | clang/lib/Basic/SourceLocation.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp index 43fa3a1..93f60fc 100644 --- a/clang/lib/Basic/SourceLocation.cpp +++ b/clang/lib/Basic/SourceLocation.cpp @@ -83,12 +83,6 @@ unsigned FullSourceLoc::getLineNumber() const { return SrcMgr->getLineNumber(*this); } -unsigned FullSourceLoc::getColumnNumber() const { - assert(isValid()); - return SrcMgr->getColumnNumber(*this); -} - - unsigned FullSourceLoc::getInstantiationLineNumber() const { assert(isValid()); return SrcMgr->getInstantiationLineNumber(*this); |