diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-17 18:34:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-17 18:34:53 +0000 |
commit | 1bfd4a6313ea8ebf710c46c10111732cc65d51f6 (patch) | |
tree | c14d5890fefa4d7bcdf70e322d0008573a92ca7d /Lex/HeaderSearch.cpp | |
parent | c6e2c2abd65c39e93c7f51e55f2dae81fe8f2c4c (diff) |
Start reading the headermap header, drop the 'errorstr' argument to
the create method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/HeaderSearch.cpp')
-rw-r--r-- | Lex/HeaderSearch.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lex/HeaderSearch.cpp b/Lex/HeaderSearch.cpp index 99d0d52f11..beda5893ac 100644 --- a/Lex/HeaderSearch.cpp +++ b/Lex/HeaderSearch.cpp @@ -58,8 +58,7 @@ void HeaderSearch::PrintStats() { /// CreateHeaderMap - This method returns a HeaderMap for the specified /// FileEntry, uniquing them through the the 'HeaderMaps' datastructure. -const HeaderMap *HeaderSearch::CreateHeaderMap(const FileEntry *FE, - std::string &ErrorInfo) { +const HeaderMap *HeaderSearch::CreateHeaderMap(const FileEntry *FE) { // We expect the number of headermaps to be small, and almost always empty. // If it ever grows, use of a linear search should be re-evaluated. if (!HeaderMaps.empty()) { @@ -70,7 +69,7 @@ const HeaderMap *HeaderSearch::CreateHeaderMap(const FileEntry *FE, return HeaderMaps[i].second; } - if (const HeaderMap *HM = HeaderMap::Create(FE, ErrorInfo)) { + if (const HeaderMap *HM = HeaderMap::Create(FE)) { HeaderMaps.push_back(std::make_pair(FE, HM)); return HM; } |