aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-16 22:53:56 +0000
committerChris Lattner <sabre@nondot.org>2009-01-16 22:53:56 +0000
commit0cf7bb937d5ed21118eeb45a93eb916723cc75a1 (patch)
tree9aadac8e9d0bfa9fce9f49cb74acb716935db2aa
parentf3e8fcd07468028cd40e754cc7fb01a5c5be39bc (diff)
remove FullSourceLoc::isFileID
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62371 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/SourceLocation.h2
-rw-r--r--lib/Basic/SourceLocation.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index a77eadd271..319857ec2f 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -258,8 +258,6 @@ public:
bool isInSystemHeader() const;
- bool isFileID() const { return Loc.isFileID(); }
-
unsigned getCanonicalFileID() const;
bool operator==(const FullSourceLoc& RHS) const {
diff --git a/lib/Basic/SourceLocation.cpp b/lib/Basic/SourceLocation.cpp
index a34293177b..41ada637bd 100644
--- a/lib/Basic/SourceLocation.cpp
+++ b/lib/Basic/SourceLocation.cpp
@@ -119,7 +119,7 @@ void FullSourceLoc::dump() const {
return;
}
- if (isFileID()) {
+ if (Loc.isFileID()) {
// The instantiation and spelling pos is identical for file locs.
fprintf(stderr, "File Loc from '%s': %d: %d\n",
getSourceName(), getInstantiationLineNumber(),