@@ -45,9 +45,9 @@ class LocalizationWriterInfo {
45
45
46
46
hash_value_type ComputeHash (key_type_ref key) { return llvm::djbHash (key); }
47
47
48
- std::pair<unsigned , unsigned > EmitKeyDataLength (llvm::raw_ostream &out,
49
- key_type_ref key,
50
- data_type_ref data) {
48
+ std::pair<offset_type, offset_type > EmitKeyDataLength (llvm::raw_ostream &out,
49
+ key_type_ref key,
50
+ data_type_ref data) {
51
51
offset_type keyLength = static_cast <offset_type>(key.size ());
52
52
offset_type dataLength = static_cast <offset_type>(data.size ());
53
53
endian::write<offset_type>(out, keyLength, little);
@@ -85,19 +85,20 @@ class LocalizationReaderInfo {
85
85
return llvm::djbHash (key);
86
86
}
87
87
88
- static std::pair<unsigned , unsigned > ReadKeyDataLength (const uint8_t *&data) {
88
+ static std::pair<offset_type, offset_type>
89
+ ReadKeyDataLength (const unsigned char *&data) {
89
90
offset_type keyLength =
90
91
endian::readNext<offset_type, little, unaligned>(data);
91
92
offset_type dataLength =
92
93
endian::readNext<offset_type, little, unaligned>(data);
93
94
return {keyLength, dataLength};
94
95
}
95
96
96
- internal_key_type ReadKey (const uint8_t *data, offset_type length) {
97
+ internal_key_type ReadKey (const unsigned char *data, offset_type length) {
97
98
return internal_key_type ((const char *)data, length);
98
99
}
99
100
100
- data_type ReadData (llvm::StringRef Key, const uint8_t *data,
101
+ data_type ReadData (llvm::StringRef Key, const unsigned char *data,
101
102
offset_type length) {
102
103
return data_type ((const char *)data, length);
103
104
}
0 commit comments