aboutsummaryrefslogtreecommitdiff
path: root/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
commit7da5aea7669e6db3e593162b8a123aef06a04d07 (patch)
tree4af3a673a35337a49ec9d99787d73fd82588c227 /lib/Basic/SourceLocation.cpp
parentbe395f6b29762c37938637ffef5f59514e04751a (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceLocation.cpp')
-rw-r--r--lib/Basic/SourceLocation.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Basic/SourceLocation.cpp b/lib/Basic/SourceLocation.cpp
index 43fa3a13a6..93f60fc874 100644
--- a/lib/Basic/SourceLocation.cpp
+++ b/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);