aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-15 19:22:18 +0000
committerChris Lattner <sabre@nondot.org>2007-11-15 19:22:18 +0000
commit25bfcb927d9169ea675ce6e98d8992efceeb0e42 (patch)
treef5d0fe643b4bf1d1daae400cdb661edb1fbe3a9e
parentb283298f03d2b512204d14ca687f9de263eeff0f (diff)
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
-rw-r--r--include/clang/Lex/HeaderSearch.h6
1 files changed, 6 insertions, 0 deletions
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.