@@ -294,7 +294,7 @@ class IdentifierTableInfo {
294
294
uint32_t KeyLength = Key.size ();
295
295
uint32_t DataLength = sizeof (uint32_t );
296
296
297
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
297
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
298
298
writer.write <uint16_t >(KeyLength);
299
299
writer.write <uint16_t >(DataLength);
300
300
return {KeyLength, DataLength};
@@ -303,7 +303,7 @@ class IdentifierTableInfo {
303
303
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) { OS << Key; }
304
304
305
305
void EmitData (raw_ostream &OS, key_type_ref, data_type_ref Data, unsigned ) {
306
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
306
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
307
307
writer.write <uint32_t >(Data);
308
308
}
309
309
};
@@ -326,7 +326,7 @@ void APINotesWriter::Implementation::writeIdentifierBlock(
326
326
llvm::raw_svector_ostream BlobStream (HashTableBlob);
327
327
// Make sure that no bucket is at offset 0
328
328
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
329
- llvm::support ::little);
329
+ llvm::endianness ::little);
330
330
Offset = Generator.Emit (BlobStream);
331
331
}
332
332
@@ -354,21 +354,21 @@ class ObjCContextIDTableInfo {
354
354
uint32_t KeyLength = sizeof (uint32_t ) + sizeof (uint8_t ) + sizeof (uint32_t );
355
355
uint32_t DataLength = sizeof (uint32_t );
356
356
357
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
357
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
358
358
writer.write <uint16_t >(KeyLength);
359
359
writer.write <uint16_t >(DataLength);
360
360
return {KeyLength, DataLength};
361
361
}
362
362
363
363
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
364
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
364
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
365
365
writer.write <uint32_t >(Key.parentContextID );
366
366
writer.write <uint8_t >(Key.contextKind );
367
367
writer.write <uint32_t >(Key.contextID );
368
368
}
369
369
370
370
void EmitData (raw_ostream &OS, key_type_ref, data_type_ref Data, unsigned ) {
371
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
371
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
372
372
writer.write <uint32_t >(Data);
373
373
}
374
374
};
@@ -406,7 +406,7 @@ unsigned getVersionedInfoSize(
406
406
407
407
// / Emit a serialized representation of a version tuple.
408
408
void emitVersionTuple (raw_ostream &OS, const VersionTuple &VT) {
409
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
409
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
410
410
411
411
// First byte contains the number of components beyond the 'major' component.
412
412
uint8_t descriptor;
@@ -445,7 +445,7 @@ void emitVersionedInfo(
445
445
return LHS.first < RHS.first ;
446
446
});
447
447
448
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
448
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
449
449
writer.write <uint16_t >(VI.size ());
450
450
for (const auto &E : VI) {
451
451
emitVersionTuple (OS, E.first );
@@ -479,7 +479,7 @@ class VersionedTableInfo {
479
479
return asDerived ().getUnversionedInfoSize (UI);
480
480
});
481
481
482
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
482
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
483
483
writer.write <uint16_t >(KeyLength);
484
484
writer.write <uint16_t >(DataLength);
485
485
return {KeyLength, DataLength};
@@ -495,7 +495,7 @@ class VersionedTableInfo {
495
495
496
496
// / Emit a serialized representation of the common entity information.
497
497
void emitCommonEntityInfo (raw_ostream &OS, const CommonEntityInfo &CEI) {
498
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
498
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
499
499
500
500
uint8_t payload = 0 ;
501
501
if (auto swiftPrivate = CEI.isSwiftPrivate ()) {
@@ -535,7 +535,7 @@ unsigned getCommonTypeInfoSize(const CommonTypeInfo &CTI) {
535
535
void emitCommonTypeInfo (raw_ostream &OS, const CommonTypeInfo &CTI) {
536
536
emitCommonEntityInfo (OS, CTI);
537
537
538
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
538
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
539
539
if (auto swiftBridge = CTI.getSwiftBridge ()) {
540
540
writer.write <uint16_t >(swiftBridge->size () + 1 );
541
541
OS.write (swiftBridge->c_str (), swiftBridge->size ());
@@ -558,7 +558,7 @@ class ObjCContextInfoTableInfo
558
558
unsigned getKeyLength (key_type_ref) { return sizeof (uint32_t ); }
559
559
560
560
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
561
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
561
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
562
562
writer.write <uint32_t >(Key);
563
563
}
564
564
@@ -607,7 +607,7 @@ void APINotesWriter::Implementation::writeObjCContextBlock(
607
607
llvm::raw_svector_ostream BlobStream (HashTableBlob);
608
608
// Make sure that no bucket is at offset 0
609
609
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
610
- llvm::support ::little);
610
+ llvm::endianness ::little);
611
611
Offset = Generator.Emit (BlobStream);
612
612
}
613
613
@@ -626,7 +626,7 @@ void APINotesWriter::Implementation::writeObjCContextBlock(
626
626
llvm::raw_svector_ostream BlobStream (HashTableBlob);
627
627
// Make sure that no bucket is at offset 0
628
628
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
629
- llvm::support ::little);
629
+ llvm::endianness ::little);
630
630
Offset = Generator.Emit (BlobStream);
631
631
}
632
632
@@ -656,7 +656,7 @@ void emitVariableInfo(raw_ostream &OS, const VariableInfo &VI) {
656
656
657
657
OS.write (reinterpret_cast <const char *>(bytes), 2 );
658
658
659
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
659
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
660
660
writer.write <uint16_t >(VI.getType ().size ());
661
661
OS.write (VI.getType ().data (), VI.getType ().size ());
662
662
}
@@ -672,7 +672,7 @@ class ObjCPropertyTableInfo
672
672
}
673
673
674
674
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
675
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
675
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
676
676
writer.write <uint32_t >(std::get<0 >(Key));
677
677
writer.write <uint32_t >(std::get<1 >(Key));
678
678
writer.write <uint8_t >(std::get<2 >(Key));
@@ -717,7 +717,7 @@ void APINotesWriter::Implementation::writeObjCPropertyBlock(
717
717
llvm::raw_svector_ostream BlobStream (HashTableBlob);
718
718
// Make sure that no bucket is at offset 0
719
719
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
720
- llvm::support ::little);
720
+ llvm::endianness ::little);
721
721
Offset = Generator.Emit (BlobStream);
722
722
}
723
723
@@ -741,7 +741,7 @@ class ObjCMethodTableInfo
741
741
}
742
742
743
743
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
744
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
744
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
745
745
writer.write <uint32_t >(std::get<0 >(Key));
746
746
writer.write <uint32_t >(std::get<1 >(Key));
747
747
writer.write <uint8_t >(std::get<2 >(Key));
@@ -757,7 +757,7 @@ class ObjCMethodTableInfo
757
757
758
758
void emitUnversionedInfo (raw_ostream &OS, const ObjCMethodInfo &OMI) {
759
759
uint8_t flags = 0 ;
760
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
760
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
761
761
flags = (flags << 1 ) | OMI.DesignatedInit ;
762
762
flags = (flags << 1 ) | OMI.RequiredInit ;
763
763
writer.write <uint8_t >(flags);
@@ -785,7 +785,7 @@ void APINotesWriter::Implementation::writeObjCMethodBlock(
785
785
llvm::raw_svector_ostream BlobStream (HashTableBlob);
786
786
// Make sure that no bucket is at offset 0
787
787
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
788
- llvm::support ::little);
788
+ llvm::endianness ::little);
789
789
Offset = Generator.Emit (BlobStream);
790
790
}
791
791
@@ -815,21 +815,21 @@ class ObjCSelectorTableInfo {
815
815
sizeof (uint16_t ) + sizeof (uint32_t ) * Key.Identifiers .size ();
816
816
uint32_t DataLength = sizeof (uint32_t );
817
817
818
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
818
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
819
819
writer.write <uint16_t >(KeyLength);
820
820
writer.write <uint16_t >(DataLength);
821
821
return {KeyLength, DataLength};
822
822
}
823
823
824
824
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
825
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
825
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
826
826
writer.write <uint16_t >(Key.NumPieces );
827
827
for (auto Identifier : Key.Identifiers )
828
828
writer.write <uint32_t >(Identifier);
829
829
}
830
830
831
831
void EmitData (raw_ostream &OS, key_type_ref, data_type_ref Data, unsigned ) {
832
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
832
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
833
833
writer.write <uint32_t >(Data);
834
834
}
835
835
};
@@ -853,7 +853,7 @@ void APINotesWriter::Implementation::writeObjCSelectorBlock(
853
853
llvm::raw_svector_ostream BlobStream (HashTableBlob);
854
854
// Make sure that no bucket is at offset 0
855
855
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
856
- llvm::support ::little);
856
+ llvm::endianness ::little);
857
857
Offset = Generator.Emit (BlobStream);
858
858
}
859
859
@@ -873,7 +873,7 @@ class GlobalVariableTableInfo
873
873
}
874
874
875
875
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
876
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
876
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
877
877
writer.write <uint32_t >(Key.parentContextID );
878
878
writer.write <uint8_t >(Key.contextKind );
879
879
writer.write <uint32_t >(Key.contextID );
@@ -911,7 +911,7 @@ void APINotesWriter::Implementation::writeGlobalVariableBlock(
911
911
llvm::raw_svector_ostream BlobStream (HashTableBlob);
912
912
// Make sure that no bucket is at offset 0
913
913
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
914
- llvm::support ::little);
914
+ llvm::endianness ::little);
915
915
Offset = Generator.Emit (BlobStream);
916
916
}
917
917
@@ -938,7 +938,7 @@ void emitParamInfo(raw_ostream &OS, const ParamInfo &PI) {
938
938
if (auto RCC = PI.getRetainCountConvention ())
939
939
flags |= static_cast <uint8_t >(RCC.value ()) + 1 ;
940
940
941
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
941
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
942
942
writer.write <uint8_t >(flags);
943
943
}
944
944
@@ -963,7 +963,7 @@ void emitFunctionInfo(raw_ostream &OS, const FunctionInfo &FI) {
963
963
if (auto RCC = FI.getRetainCountConvention ())
964
964
flags |= static_cast <uint8_t >(RCC.value ()) + 1 ;
965
965
966
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
966
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
967
967
968
968
writer.write <uint8_t >(flags);
969
969
writer.write <uint8_t >(FI.NumAdjustedNullable );
@@ -987,7 +987,7 @@ class GlobalFunctionTableInfo
987
987
}
988
988
989
989
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
990
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
990
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
991
991
writer.write <uint32_t >(Key.parentContextID );
992
992
writer.write <uint8_t >(Key.contextKind );
993
993
writer.write <uint32_t >(Key.contextID );
@@ -1025,7 +1025,7 @@ void APINotesWriter::Implementation::writeGlobalFunctionBlock(
1025
1025
llvm::raw_svector_ostream BlobStream (HashTableBlob);
1026
1026
// Make sure that no bucket is at offset 0
1027
1027
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
1028
- llvm::support ::little);
1028
+ llvm::endianness ::little);
1029
1029
Offset = Generator.Emit (BlobStream);
1030
1030
}
1031
1031
@@ -1043,7 +1043,7 @@ class EnumConstantTableInfo
1043
1043
unsigned getKeyLength (key_type_ref) { return sizeof (uint32_t ); }
1044
1044
1045
1045
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
1046
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
1046
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
1047
1047
writer.write <uint32_t >(Key);
1048
1048
}
1049
1049
@@ -1079,7 +1079,7 @@ void APINotesWriter::Implementation::writeEnumConstantBlock(
1079
1079
llvm::raw_svector_ostream BlobStream (HashTableBlob);
1080
1080
// Make sure that no bucket is at offset 0
1081
1081
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
1082
- llvm::support ::little);
1082
+ llvm::endianness ::little);
1083
1083
Offset = Generator.Emit (BlobStream);
1084
1084
}
1085
1085
@@ -1101,7 +1101,7 @@ class CommonTypeTableInfo
1101
1101
}
1102
1102
1103
1103
void EmitKey (raw_ostream &OS, key_type_ref Key, unsigned ) {
1104
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
1104
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
1105
1105
writer.write <uint32_t >(Key.parentContextID );
1106
1106
writer.write <uint8_t >(Key.contextKind );
1107
1107
writer.write <IdentifierID>(Key.contextID );
@@ -1131,7 +1131,7 @@ class TagTableInfo : public CommonTypeTableInfo<TagTableInfo, TagInfo> {
1131
1131
}
1132
1132
1133
1133
void emitUnversionedInfo (raw_ostream &OS, const TagInfo &TI) {
1134
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
1134
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
1135
1135
1136
1136
uint8_t Flags = 0 ;
1137
1137
if (auto extensibility = TI.EnumExtensibility ) {
@@ -1187,7 +1187,7 @@ void APINotesWriter::Implementation::writeTagBlock(
1187
1187
llvm::raw_svector_ostream BlobStream (HashTableBlob);
1188
1188
// Make sure that no bucket is at offset 0
1189
1189
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
1190
- llvm::support ::little);
1190
+ llvm::endianness ::little);
1191
1191
Offset = Generator.Emit (BlobStream);
1192
1192
}
1193
1193
@@ -1206,7 +1206,7 @@ class TypedefTableInfo
1206
1206
}
1207
1207
1208
1208
void emitUnversionedInfo (raw_ostream &OS, const TypedefInfo &TI) {
1209
- llvm::support::endian::Writer writer (OS, llvm::support ::little);
1209
+ llvm::support::endian::Writer writer (OS, llvm::endianness ::little);
1210
1210
1211
1211
uint8_t Flags = 0 ;
1212
1212
if (auto swiftWrapper = TI.SwiftWrapper )
@@ -1237,7 +1237,7 @@ void APINotesWriter::Implementation::writeTypedefBlock(
1237
1237
llvm::raw_svector_ostream BlobStream (HashTableBlob);
1238
1238
// Make sure that no bucket is at offset 0
1239
1239
llvm::support::endian::write<uint32_t >(BlobStream, 0 ,
1240
- llvm::support ::little);
1240
+ llvm::endianness ::little);
1241
1241
Offset = Generator.Emit (BlobStream);
1242
1242
}
1243
1243
0 commit comments