diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-11-15 19:22:18 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-11-15 19:22:18 +0000 |
| commit | 4dcbc2090a006ffeffb0e6bf08d044beeee6e722 (patch) | |
| tree | 6f351cd168a72429b60a83be0c3df3bf20f92fa1 | |
| parent | 609d41336348772d348de88561c24cb06bb5beb8 (diff) | |
add header file I forgot to check in
llvm-svn: 44179
| -rw-r--r-- | clang/include/clang/Lex/HeaderSearch.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang/Lex/HeaderSearch.h b/clang/include/clang/Lex/HeaderSearch.h index 4163a8a07f2b..381c672aebf2 100644 --- a/clang/include/clang/Lex/HeaderSearch.h +++ b/clang/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. |
