Browse Source

remove FullSourceLoc::isFileID

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62371 91177308-0d34-0410-b5e6-96231b3b80d8
Chris Lattner 16 năm trước cách đây
mục cha
commit
0cf7bb937d

+ 0 - 2
include/clang/Basic/SourceLocation.h

@@ -258,8 +258,6 @@ public:
 
 
   bool isInSystemHeader() const;
   bool isInSystemHeader() const;
   
   
-  bool isFileID() const { return Loc.isFileID(); }
-  
   unsigned getCanonicalFileID() const;
   unsigned getCanonicalFileID() const;
   
   
   bool operator==(const FullSourceLoc& RHS) const {
   bool operator==(const FullSourceLoc& RHS) const {

+ 1 - 1
lib/Basic/SourceLocation.cpp

@@ -119,7 +119,7 @@ void FullSourceLoc::dump() const {
     return;
     return;
   }
   }
   
   
-  if (isFileID()) {
+  if (Loc.isFileID()) {
     // The instantiation and spelling pos is identical for file locs.
     // The instantiation and spelling pos is identical for file locs.
     fprintf(stderr, "File Loc from '%s': %d: %d\n",
     fprintf(stderr, "File Loc from '%s': %d: %d\n",
             getSourceName(), getInstantiationLineNumber(),
             getSourceName(), getInstantiationLineNumber(),