@@ -67,7 +67,7 @@ class TypeRefInfo {
67
67
offset_type key_len = key.size ();
68
68
// Write the key length so we don't have to traverse it later.
69
69
llvm::support::endian::write <offset_type>(out, key_len,
70
- llvm::support ::little);
70
+ llvm::endianness ::little);
71
71
// Since the data type is always a constant size there's no need to write
72
72
// it.
73
73
offset_type data_len = sizeof (data_type);
@@ -80,7 +80,7 @@ class TypeRefInfo {
80
80
81
81
void EmitData (llvm::raw_ostream &out, key_type_ref key, data_type_ref data,
82
82
unsigned len) {
83
- llvm::support::endian::write <data_type>(out, data, llvm::support ::little);
83
+ llvm::support::endian::write <data_type>(out, data, llvm::endianness ::little);
84
84
}
85
85
86
86
// Decoder functions.
@@ -92,7 +92,7 @@ class TypeRefInfo {
92
92
static std::pair<offset_type, offset_type>
93
93
ReadKeyDataLength (const unsigned char *&data) {
94
94
offset_type key_len =
95
- llvm::support::endian::readNext<offset_type, llvm::support ::little,
95
+ llvm::support::endian::readNext<offset_type, llvm::endianness ::little,
96
96
llvm::support::unaligned>(data);
97
97
offset_type data_len = sizeof (data_type);
98
98
return std::make_pair (key_len, data_len);
@@ -105,7 +105,7 @@ class TypeRefInfo {
105
105
static data_type ReadData (internal_key_type key, const uint8_t *data,
106
106
unsigned length) {
107
107
data_type result =
108
- llvm::support::endian::readNext<uint32_t , llvm::support ::little,
108
+ llvm::support::endian::readNext<uint32_t , llvm::endianness ::little,
109
109
llvm::support::unaligned>(data);
110
110
return result;
111
111
}
0 commit comments