Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 1 | //===- ASTReaderInternals.h - AST Reader Internals --------------*- C++ -*-===// |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file provides internal definitions used in the AST reader. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 13 | |
Benjamin Kramer | 2f5db8b | 2014-08-13 16:25:19 +0000 | [diff] [blame] | 14 | #ifndef LLVM_CLANG_LIB_SERIALIZATION_ASTREADERINTERNALS_H |
| 15 | #define LLVM_CLANG_LIB_SERIALIZATION_ASTREADERINTERNALS_H |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 16 | |
Mehdi Amini | 9670f84 | 2016-07-18 19:02:11 +0000 | [diff] [blame] | 17 | #include "MultiOnDiskHashTable.h" |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 18 | #include "clang/AST/DeclarationName.h" |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 19 | #include "clang/Basic/LLVM.h" |
Douglas Gregor | bfd73d7 | 2013-01-23 18:53:14 +0000 | [diff] [blame] | 20 | #include "clang/Serialization/ASTBitCodes.h" |
Richard Smith | d88a7f1 | 2015-09-01 20:35:42 +0000 | [diff] [blame] | 21 | #include "llvm/ADT/DenseSet.h" |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 22 | #include "llvm/ADT/SmallVector.h" |
| 23 | #include "llvm/ADT/StringRef.h" |
Justin Bogner | bb094f0 | 2014-04-18 19:57:06 +0000 | [diff] [blame] | 24 | #include "llvm/Support/OnDiskHashTable.h" |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 25 | #include <ctime> |
Chandler Carruth | 3a02247 | 2012-12-04 09:13:33 +0000 | [diff] [blame] | 26 | #include <utility> |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 27 | |
| 28 | namespace clang { |
| 29 | |
| 30 | class ASTReader; |
Argyrios Kyrtzidis | 5c2a345 | 2013-03-06 18:12:47 +0000 | [diff] [blame] | 31 | class FileEntry; |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 32 | struct HeaderFileInfo; |
| 33 | class HeaderSearch; |
| 34 | class IdentifierTable; |
| 35 | class ObjCMethodDecl; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 36 | |
| 37 | namespace serialization { |
| 38 | |
Douglas Gregor | de3ef50 | 2011-11-30 23:21:26 +0000 | [diff] [blame] | 39 | class ModuleFile; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 40 | |
| 41 | namespace reader { |
| 42 | |
| 43 | /// \brief Class that performs name lookup into a DeclContext stored |
| 44 | /// in an AST file. |
| 45 | class ASTDeclContextNameLookupTrait { |
| 46 | ASTReader &Reader; |
Douglas Gregor | de3ef50 | 2011-11-30 23:21:26 +0000 | [diff] [blame] | 47 | ModuleFile &F; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 48 | |
| 49 | public: |
Richard Smith | d88a7f1 | 2015-09-01 20:35:42 +0000 | [diff] [blame] | 50 | // Maximum number of lookup tables we allow before condensing the tables. |
| 51 | static const int MaxTables = 4; |
| 52 | |
| 53 | /// The lookup result is a list of global declaration IDs. |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 54 | using data_type = SmallVector<DeclID, 4>; |
| 55 | |
Richard Smith | d88a7f1 | 2015-09-01 20:35:42 +0000 | [diff] [blame] | 56 | struct data_type_builder { |
| 57 | data_type &Data; |
| 58 | llvm::DenseSet<DeclID> Found; |
| 59 | |
| 60 | data_type_builder(data_type &D) : Data(D) {} |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 61 | |
Richard Smith | d88a7f1 | 2015-09-01 20:35:42 +0000 | [diff] [blame] | 62 | void insert(DeclID ID) { |
| 63 | // Just use a linear scan unless we have more than a few IDs. |
| 64 | if (Found.empty() && !Data.empty()) { |
| 65 | if (Data.size() <= 4) { |
| 66 | for (auto I : Found) |
| 67 | if (I == ID) |
| 68 | return; |
| 69 | Data.push_back(ID); |
| 70 | return; |
| 71 | } |
| 72 | |
| 73 | // Switch to tracking found IDs in the set. |
| 74 | Found.insert(Data.begin(), Data.end()); |
| 75 | } |
| 76 | |
| 77 | if (Found.insert(ID).second) |
| 78 | Data.push_back(ID); |
| 79 | } |
| 80 | }; |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 81 | using hash_value_type = unsigned; |
| 82 | using offset_type = unsigned; |
| 83 | using file_type = ModuleFile *; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 84 | |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 85 | using external_key_type = DeclarationName; |
| 86 | using internal_key_type = DeclarationNameKey; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 87 | |
Nick Lewycky | 2bd0ab2 | 2012-04-16 02:51:46 +0000 | [diff] [blame] | 88 | explicit ASTDeclContextNameLookupTrait(ASTReader &Reader, ModuleFile &F) |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 89 | : Reader(Reader), F(F) {} |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 90 | |
Richard Smith | d88a7f1 | 2015-09-01 20:35:42 +0000 | [diff] [blame] | 91 | static bool EqualKey(const internal_key_type &a, const internal_key_type &b) { |
Richard Smith | a06c7e6 | 2015-08-26 23:55:49 +0000 | [diff] [blame] | 92 | return a == b; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 93 | } |
| 94 | |
Richard Smith | a06c7e6 | 2015-08-26 23:55:49 +0000 | [diff] [blame] | 95 | static hash_value_type ComputeHash(const internal_key_type &Key) { |
| 96 | return Key.getHash(); |
| 97 | } |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 98 | |
Richard Smith | a06c7e6 | 2015-08-26 23:55:49 +0000 | [diff] [blame] | 99 | static internal_key_type GetInternalKey(const external_key_type &Name) { |
| 100 | return Name; |
| 101 | } |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 102 | |
Nick Lewycky | 2bd0ab2 | 2012-04-16 02:51:46 +0000 | [diff] [blame] | 103 | static std::pair<unsigned, unsigned> |
Richard Smith | a06c7e6 | 2015-08-26 23:55:49 +0000 | [diff] [blame] | 104 | ReadKeyDataLength(const unsigned char *&d); |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 105 | |
Richard Smith | a06c7e6 | 2015-08-26 23:55:49 +0000 | [diff] [blame] | 106 | internal_key_type ReadKey(const unsigned char *d, unsigned); |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 107 | |
Richard Smith | d88a7f1 | 2015-09-01 20:35:42 +0000 | [diff] [blame] | 108 | void ReadDataInto(internal_key_type, const unsigned char *d, |
| 109 | unsigned DataLen, data_type_builder &Val); |
| 110 | |
| 111 | static void MergeDataInto(const data_type &From, data_type_builder &To) { |
| 112 | To.Data.reserve(To.Data.size() + From.size()); |
| 113 | for (DeclID ID : From) |
| 114 | To.insert(ID); |
| 115 | } |
| 116 | |
| 117 | file_type ReadFileRef(const unsigned char *&d); |
| 118 | }; |
| 119 | |
| 120 | struct DeclContextLookupTable { |
| 121 | MultiOnDiskHashTable<ASTDeclContextNameLookupTrait> Table; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 122 | }; |
| 123 | |
Douglas Gregor | bfd73d7 | 2013-01-23 18:53:14 +0000 | [diff] [blame] | 124 | /// \brief Base class for the trait describing the on-disk hash table for the |
| 125 | /// identifiers in an AST file. |
| 126 | /// |
| 127 | /// This class is not useful by itself; rather, it provides common |
| 128 | /// functionality for accessing the on-disk hash table of identifiers |
| 129 | /// in an AST file. Different subclasses customize that functionality |
| 130 | /// based on what information they are interested in. Those subclasses |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 131 | /// must provide the \c data_type type and the ReadData operation, only. |
Douglas Gregor | bfd73d7 | 2013-01-23 18:53:14 +0000 | [diff] [blame] | 132 | class ASTIdentifierLookupTraitBase { |
| 133 | public: |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 134 | using external_key_type = StringRef; |
| 135 | using internal_key_type = StringRef; |
| 136 | using hash_value_type = unsigned; |
| 137 | using offset_type = unsigned; |
Douglas Gregor | bfd73d7 | 2013-01-23 18:53:14 +0000 | [diff] [blame] | 138 | |
| 139 | static bool EqualKey(const internal_key_type& a, const internal_key_type& b) { |
| 140 | return a == b; |
| 141 | } |
| 142 | |
Justin Bogner | 25463f1 | 2014-04-18 20:27:24 +0000 | [diff] [blame] | 143 | static hash_value_type ComputeHash(const internal_key_type& a); |
Douglas Gregor | bfd73d7 | 2013-01-23 18:53:14 +0000 | [diff] [blame] | 144 | |
| 145 | static std::pair<unsigned, unsigned> |
| 146 | ReadKeyDataLength(const unsigned char*& d); |
| 147 | |
| 148 | // This hopefully will just get inlined and removed by the optimizer. |
| 149 | static const internal_key_type& |
| 150 | GetInternalKey(const external_key_type& x) { return x; } |
| 151 | |
| 152 | // This hopefully will just get inlined and removed by the optimizer. |
| 153 | static const external_key_type& |
| 154 | GetExternalKey(const internal_key_type& x) { return x; } |
| 155 | |
| 156 | static internal_key_type ReadKey(const unsigned char* d, unsigned n); |
| 157 | }; |
| 158 | |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 159 | /// \brief Class that performs lookup for an identifier stored in an AST file. |
Douglas Gregor | bfd73d7 | 2013-01-23 18:53:14 +0000 | [diff] [blame] | 160 | class ASTIdentifierLookupTrait : public ASTIdentifierLookupTraitBase { |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 161 | ASTReader &Reader; |
Douglas Gregor | de3ef50 | 2011-11-30 23:21:26 +0000 | [diff] [blame] | 162 | ModuleFile &F; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 163 | |
| 164 | // If we know the IdentifierInfo in advance, it is here and we will |
| 165 | // not build a new one. Used when deserializing information about an |
| 166 | // identifier that was constructed before the AST file was read. |
| 167 | IdentifierInfo *KnownII; |
| 168 | |
| 169 | public: |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 170 | using data_type = IdentifierInfo *; |
Craig Topper | a13603a | 2014-05-22 05:54:18 +0000 | [diff] [blame] | 171 | |
Douglas Gregor | de3ef50 | 2011-11-30 23:21:26 +0000 | [diff] [blame] | 172 | ASTIdentifierLookupTrait(ASTReader &Reader, ModuleFile &F, |
Craig Topper | a13603a | 2014-05-22 05:54:18 +0000 | [diff] [blame] | 173 | IdentifierInfo *II = nullptr) |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 174 | : Reader(Reader), F(F), KnownII(II) {} |
Craig Topper | a13603a | 2014-05-22 05:54:18 +0000 | [diff] [blame] | 175 | |
Douglas Gregor | bfd73d7 | 2013-01-23 18:53:14 +0000 | [diff] [blame] | 176 | data_type ReadData(const internal_key_type& k, |
| 177 | const unsigned char* d, |
| 178 | unsigned DataLen); |
Douglas Gregor | 247afcc | 2012-01-24 15:24:38 +0000 | [diff] [blame] | 179 | |
Richard Smith | 79bf920 | 2015-08-24 03:33:22 +0000 | [diff] [blame] | 180 | IdentID ReadIdentifierID(const unsigned char *d); |
| 181 | |
Douglas Gregor | 247afcc | 2012-01-24 15:24:38 +0000 | [diff] [blame] | 182 | ASTReader &getReader() const { return Reader; } |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 183 | }; |
| 184 | |
| 185 | /// \brief The on-disk hash table used to contain information about |
| 186 | /// all of the identifiers in the program. |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 187 | using ASTIdentifierLookupTable = |
| 188 | llvm::OnDiskIterableChainedHashTable<ASTIdentifierLookupTrait>; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 189 | |
| 190 | /// \brief Class that performs lookup for a selector's entries in the global |
| 191 | /// method pool stored in an AST file. |
| 192 | class ASTSelectorLookupTrait { |
| 193 | ASTReader &Reader; |
Douglas Gregor | de3ef50 | 2011-11-30 23:21:26 +0000 | [diff] [blame] | 194 | ModuleFile &F; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 195 | |
| 196 | public: |
| 197 | struct data_type { |
| 198 | SelectorID ID; |
Argyrios Kyrtzidis | d3da6e0 | 2013-04-17 00:08:58 +0000 | [diff] [blame] | 199 | unsigned InstanceBits; |
| 200 | unsigned FactoryBits; |
Nico Weber | ff4b35e | 2014-12-27 22:14:15 +0000 | [diff] [blame] | 201 | bool InstanceHasMoreThanOneDecl; |
| 202 | bool FactoryHasMoreThanOneDecl; |
Dmitri Gribenko | f857950 | 2013-01-12 19:30:44 +0000 | [diff] [blame] | 203 | SmallVector<ObjCMethodDecl *, 2> Instance; |
| 204 | SmallVector<ObjCMethodDecl *, 2> Factory; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 205 | }; |
| 206 | |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 207 | using external_key_type = Selector; |
| 208 | using internal_key_type = external_key_type; |
| 209 | using hash_value_type = unsigned; |
| 210 | using offset_type = unsigned; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 211 | |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 212 | ASTSelectorLookupTrait(ASTReader &Reader, ModuleFile &F) |
| 213 | : Reader(Reader), F(F) {} |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 214 | |
| 215 | static bool EqualKey(const internal_key_type& a, |
| 216 | const internal_key_type& b) { |
| 217 | return a == b; |
| 218 | } |
| 219 | |
Justin Bogner | 25463f1 | 2014-04-18 20:27:24 +0000 | [diff] [blame] | 220 | static hash_value_type ComputeHash(Selector Sel); |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 221 | |
| 222 | static const internal_key_type& |
Chris Lattner | d2cd41c | 2011-09-10 16:13:42 +0000 | [diff] [blame] | 223 | GetInternalKey(const external_key_type& x) { return x; } |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 224 | |
| 225 | static std::pair<unsigned, unsigned> |
| 226 | ReadKeyDataLength(const unsigned char*& d); |
| 227 | |
| 228 | internal_key_type ReadKey(const unsigned char* d, unsigned); |
| 229 | data_type ReadData(Selector, const unsigned char* d, unsigned DataLen); |
| 230 | }; |
| 231 | |
| 232 | /// \brief The on-disk hash table used for the global method pool. |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 233 | using ASTSelectorLookupTable = |
| 234 | llvm::OnDiskChainedHashTable<ASTSelectorLookupTrait>; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 235 | |
| 236 | /// \brief Trait class used to search the on-disk hash table containing all of |
| 237 | /// the header search information. |
| 238 | /// |
| 239 | /// The on-disk hash table contains a mapping from each header path to |
| 240 | /// information about that header (how many times it has been included, its |
Richard Smith | 7ed1bc9 | 2014-12-05 22:42:13 +0000 | [diff] [blame] | 241 | /// controlling macro, etc.). Note that we actually hash based on the size |
| 242 | /// and mtime, and support "deep" comparisons of file names based on current |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 243 | /// inode numbers, so that the search can cope with non-normalized path names |
| 244 | /// and symlinks. |
| 245 | class HeaderFileInfoTrait { |
| 246 | ASTReader &Reader; |
Douglas Gregor | de3ef50 | 2011-11-30 23:21:26 +0000 | [diff] [blame] | 247 | ModuleFile &M; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 248 | HeaderSearch *HS; |
| 249 | const char *FrameworkStrings; |
Ted Kremenek | 03cb137 | 2013-02-05 06:21:59 +0000 | [diff] [blame] | 250 | |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 251 | public: |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 252 | using external_key_type = const FileEntry *; |
Argyrios Kyrtzidis | 5c2a345 | 2013-03-06 18:12:47 +0000 | [diff] [blame] | 253 | |
| 254 | struct internal_key_type { |
| 255 | off_t Size; |
| 256 | time_t ModTime; |
Mehdi Amini | 004b9c7 | 2016-10-10 22:52:47 +0000 | [diff] [blame] | 257 | StringRef Filename; |
Richard Smith | 7ed1bc9 | 2014-12-05 22:42:13 +0000 | [diff] [blame] | 258 | bool Imported; |
Argyrios Kyrtzidis | 5c2a345 | 2013-03-06 18:12:47 +0000 | [diff] [blame] | 259 | }; |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 260 | |
| 261 | using internal_key_ref = const internal_key_type &; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 262 | |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 263 | using data_type = HeaderFileInfo; |
| 264 | using hash_value_type = unsigned; |
| 265 | using offset_type = unsigned; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 266 | |
Douglas Gregor | de3ef50 | 2011-11-30 23:21:26 +0000 | [diff] [blame] | 267 | HeaderFileInfoTrait(ASTReader &Reader, ModuleFile &M, HeaderSearch *HS, |
Argyrios Kyrtzidis | b42863e | 2013-03-06 18:12:41 +0000 | [diff] [blame] | 268 | const char *FrameworkStrings) |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 269 | : Reader(Reader), M(M), HS(HS), FrameworkStrings(FrameworkStrings) {} |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 270 | |
Justin Bogner | 25463f1 | 2014-04-18 20:27:24 +0000 | [diff] [blame] | 271 | static hash_value_type ComputeHash(internal_key_ref ikey); |
Richard Smith | e75ee0f | 2015-08-17 07:13:32 +0000 | [diff] [blame] | 272 | internal_key_type GetInternalKey(const FileEntry *FE); |
Argyrios Kyrtzidis | 5c2a345 | 2013-03-06 18:12:47 +0000 | [diff] [blame] | 273 | bool EqualKey(internal_key_ref a, internal_key_ref b); |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 274 | |
| 275 | static std::pair<unsigned, unsigned> |
| 276 | ReadKeyDataLength(const unsigned char*& d); |
| 277 | |
Argyrios Kyrtzidis | 5c2a345 | 2013-03-06 18:12:47 +0000 | [diff] [blame] | 278 | static internal_key_type ReadKey(const unsigned char *d, unsigned); |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 279 | |
Argyrios Kyrtzidis | 5c2a345 | 2013-03-06 18:12:47 +0000 | [diff] [blame] | 280 | data_type ReadData(internal_key_ref,const unsigned char *d, unsigned DataLen); |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 281 | }; |
| 282 | |
| 283 | /// \brief The on-disk hash table used for known header files. |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 284 | using HeaderFileInfoLookupTable = |
| 285 | llvm::OnDiskChainedHashTable<HeaderFileInfoTrait>; |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 286 | |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 287 | } // namespace reader |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 288 | |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 289 | } // namespace serialization |
Douglas Gregor | d44252e | 2011-08-25 20:47:51 +0000 | [diff] [blame] | 290 | |
Eugene Zelenko | b7d8910 | 2017-11-11 00:08:50 +0000 | [diff] [blame] | 291 | } // namespace clang |
| 292 | |
| 293 | #endif // LLVM_CLANG_LIB_SERIALIZATION_ASTREADERINTERNALS_H |