From 25bfcb927d9169ea675ce6e98d8992efceeb0e42 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 15 Nov 2007 19:22:18 +0000 Subject: [PATCH] add header file I forgot to check in git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44179 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Lex/HeaderSearch.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/clang/Lex/HeaderSearch.h b/include/clang/Lex/HeaderSearch.h index 4163a8a07f..381c672aeb 100644 --- a/include/clang/Lex/HeaderSearch.h +++ b/include/clang/Lex/HeaderSearch.h @@ -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. -- 2.50.1