add header file I forgot to check in

llvm-svn: 44179
This commit is contained in:
Chris Lattner 2007-11-15 19:22:18 +00:00
parent 609d413363
commit 4dcbc2090a
1 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,12 @@ public:
getFileInfo(File).DirInfo = DirectoryLookup::SystemHeaderDir; 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 /// SetFileControllingMacro - Mark the specified file as having a controlling
/// macro. This is used by the multiple-include optimization to eliminate /// macro. This is used by the multiple-include optimization to eliminate
/// no-op #includes. /// no-op #includes.