xpose HeaderSearch::SearchDirs to tools,s, from Paul Holden

llvm-svn: 127122
This commit is contained in:
Douglas Gregor 2011-03-06 17:33:53 +00:00
parent 829c4134b8
commit 71a2f72f1f
1 changed files with 11 additions and 0 deletions

View File

@ -261,6 +261,17 @@ public:
// Used by ASTReader.
void setHeaderFileInfoForUID(HeaderFileInfo HFI, unsigned UID);
// Used by external tools
typedef std::vector<DirectoryLookup>::const_iterator search_dir_iterator;
search_dir_iterator search_dir_begin() const { return SearchDirs.begin(); }
search_dir_iterator search_dir_end() const { return SearchDirs.end(); }
unsigned search_dir_size() const { return SearchDirs.size(); }
search_dir_iterator system_dir_begin() const {
return SearchDirs.begin() + SystemDirIdx;
}
search_dir_iterator system_dir_end() const { return SearchDirs.end(); }
void PrintStats();
private: