aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-04 00:55:58 +0000
committerChris Lattner <sabre@nondot.org>2009-02-04 00:55:58 +0000
commite4ad417664849f3d50da7174a2f7e920d5577370 (patch)
treec08ac61671333d326396743d9b8258975186effd /clang/lib/Basic/SourceLocation.cpp
parent310c5b1ab15bd8d3a648abd19823379d7676337e (diff)
downloadllvm-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.cpp6
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);