]> granicus.if.org Git - clang/commitdiff
add header file I forgot to check in
authorChris Lattner <sabre@nondot.org>
Thu, 15 Nov 2007 19:22:18 +0000 (19:22 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Nov 2007 19:22:18 +0000 (19:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44179 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/HeaderSearch.h

index 4163a8a07f2bf8d790a6b7522277f3359f909db9..381c672aebf2025909c477ca0db74c86e0bafbf0 100644 (file)
@@ -152,6 +152,12 @@ public:
     getFileInfo(File).DirInfo = DirectoryLookup::SystemHeaderDir;
   }
   
+  /// IncrementIncludeCount - Increment the count for the number of times the
+  /// specified FileEntry has been entered.
+  void IncrementIncludeCount(const FileEntry *File) {
+    ++getFileInfo(File).NumIncludes;
+  }
+  
   /// SetFileControllingMacro - Mark the specified file as having a controlling
   /// macro.  This is used by the multiple-include optimization to eliminate
   /// no-op #includes.