diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index 4a4f2aaf91..c8c1cd9cad 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -4107,8 +4107,7 @@ namespace { HeaderFileInfoTrait Trait(This->Reader, M, &This->Reader.getPreprocessor().getHeaderSearchInfo(), - M.HeaderFileFrameworkStrings, - This->FE->getName()); + M.HeaderFileFrameworkStrings); HeaderFileInfoLookupTable *Table = static_cast(M.HeaderFileInfoTable); diff --git a/lib/Serialization/ASTReaderInternals.h b/lib/Serialization/ASTReaderInternals.h index 5bbb7299d1..ceae0f82b1 100644 --- a/lib/Serialization/ASTReaderInternals.h +++ b/lib/Serialization/ASTReaderInternals.h @@ -196,8 +196,6 @@ class HeaderFileInfoTrait { ModuleFile &M; HeaderSearch *HS; const char *FrameworkStrings; - const char *SearchPath; - struct stat SearchPathStatBuf; public: typedef const char *external_key_type; @@ -206,10 +204,8 @@ public: typedef HeaderFileInfo data_type; HeaderFileInfoTrait(ASTReader &Reader, ModuleFile &M, HeaderSearch *HS, - const char *FrameworkStrings, - const char *SearchPath = 0) - : Reader(Reader), M(M), HS(HS), FrameworkStrings(FrameworkStrings), - SearchPath(SearchPath) { } + const char *FrameworkStrings) + : Reader(Reader), M(M), HS(HS), FrameworkStrings(FrameworkStrings) { } static unsigned ComputeHash(const char *path); static internal_key_type GetInternalKey(const char *path);