]> granicus.if.org Git - clang/commitdiff
[PCH] Remove a couple of fields from serialization::reader::HeaderFileInfoTrait that...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 6 Mar 2013 18:12:41 +0000 (18:12 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 6 Mar 2013 18:12:41 +0000 (18:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176564 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderInternals.h

index 4a4f2aaf912ae57e7e7141cbca971d47553d2467..c8c1cd9cad79e1cf82806f5f7d4a507b29db1fd4 100644 (file)
@@ -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<HeaderFileInfoLookupTable *>(M.HeaderFileInfoTable);
index 5bbb7299d12ee2572bf1e8c753eebee92b4c33d6..ceae0f82b147c376a6fc18737f0c4d37065f8015 100644 (file)
@@ -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);