@@ -48,10 +48,11 @@ namespace llvm {
48
48
// / static std::pair<offset_type, offset_type>
49
49
// / EmitKeyDataLength(raw_ostream &Out, key_type_ref Key, data_type_ref Data);
50
50
// / /// Write Key to Out. KeyLen is the length from EmitKeyDataLength.
51
- // / static void EmitKey(raw_ostream &Out, key_type_ref Key, unsigned KeyLen);
51
+ // / static void EmitKey(raw_ostream &Out, key_type_ref Key,
52
+ // / offset_type KeyLen);
52
53
// / /// Write Data to Out. DataLen is the length from EmitKeyDataLength.
53
54
// / static void EmitData(raw_ostream &Out, key_type_ref Key,
54
- // / data_type_ref Data, unsigned DataLen);
55
+ // / data_type_ref Data, offset_type DataLen);
55
56
// / };
56
57
// / \endcode
57
58
template <typename Info> class OnDiskChainedHashTableGenerator {
@@ -227,11 +228,11 @@ template <typename Info> class OnDiskChainedHashTableGenerator {
227
228
// / /// Read the key from Buffer, given the KeyLen as reported from
228
229
// / /// ReadKeyDataLength.
229
230
// / const internal_key_type &ReadKey(const unsigned char *Buffer,
230
- // / unsigned KeyLen);
231
+ // / offset_type KeyLen);
231
232
// / /// Read the data for Key from Buffer, given the DataLen as reported from
232
233
// / /// ReadKeyDataLength.
233
234
// / data_type ReadData(StringRef Key, const unsigned char *Buffer,
234
- // / unsigned DataLen);
235
+ // / offset_type DataLen);
235
236
// / };
236
237
// / \endcode
237
238
template <typename Info> class OnDiskChainedHashTable {
@@ -268,12 +269,12 @@ template <typename Info> class OnDiskChainedHashTable {
268
269
class iterator {
269
270
internal_key_type Key;
270
271
const unsigned char *const Data;
271
- const unsigned Len;
272
+ const offset_type Len;
272
273
Info *InfoObj;
273
274
274
275
public:
275
276
iterator () : Data(0 ), Len(0 ) {}
276
- iterator (const internal_key_type K, const unsigned char *D, unsigned L,
277
+ iterator (const internal_key_type K, const unsigned char *D, offset_type L,
277
278
Info *InfoObj)
278
279
: Key(K), Data(D), Len(L), InfoObj(InfoObj) {}
279
280
0 commit comments