diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-04-14 16:34:29 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-04-14 16:34:29 +0000 |
commit | da4e650e5c14432fee19d37d0cccfbe6668e6b0a (patch) | |
tree | 64586cae295cc1a1bbcd0e3eb84653ef2b9a6b83 /clang/lib/Serialization/ModuleManager.cpp | |
parent | 8c1f0818c040d88e28e1f168fe73138a97c58cc3 (diff) | |
download | llvm-da4e650e5c14432fee19d37d0cccfbe6668e6b0a.zip llvm-da4e650e5c14432fee19d37d0cccfbe6668e6b0a.tar.gz llvm-da4e650e5c14432fee19d37d0cccfbe6668e6b0a.tar.bz2 |
OnDiskHashTable: Make the iterable version separate.
Currently the on disk hash table's key_iterator and data_iterator make
the assumption that the table data starts exactly four bytes after the
base of the table. This happens to be true for all of the tables we
currently iterate over, but not for all of the OnDiskHashTables we
currently use. For example, key_ and data_iterator would iterate over
meaningless data if they were used on the hash tables in PTHLexer.
We make the API safer by breaking this into two types. One doesn't
have the iterators, and the other must be told where the payload
starts.
llvm-svn: 206189
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions