[cfe-commits] r44179 - /cfe/trunk/include/clang/Lex/HeaderSearch.h

Chris Lattner sabre at nondot.org
Thu Nov 15 11:22:18 PST 2007


Author: lattner
Date: Thu Nov 15 13:22:18 2007
New Revision: 44179

URL: http://llvm.org/viewvc/llvm-project?rev=44179&view=rev
Log:
add header file I forgot to check in

Modified:
    cfe/trunk/include/clang/Lex/HeaderSearch.h

Modified: cfe/trunk/include/clang/Lex/HeaderSearch.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/HeaderSearch.h?rev=44179&r1=44178&r2=44179&view=diff

==============================================================================
--- cfe/trunk/include/clang/Lex/HeaderSearch.h (original)
+++ cfe/trunk/include/clang/Lex/HeaderSearch.h Thu Nov 15 13:22:18 2007
@@ -152,6 +152,12 @@
     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.





More information about the cfe-commits mailing list