浏览代码

remove FullSourceLoc::isFileID

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62371 91177308-0d34-0410-b5e6-96231b3b80d8
Chris Lattner 16 年之前
父节点
当前提交
0cf7bb937d
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 0 2
      include/clang/Basic/SourceLocation.h
  2. 1 1
      lib/Basic/SourceLocation.cpp

+ 0 - 2
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 {

+ 1 - 1
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(),