@@ -452,9 +452,8 @@ enum class FunctionMetadataConvention: uint8_t {
452
452
};
453
453
454
454
// / Flags in a function type metadata record.
455
- template <typename Runtime >
455
+ template <typename int_type >
456
456
class TargetFunctionTypeFlags {
457
- using int_type = typename Runtime::StoredSize;
458
457
enum : int_type {
459
458
NumArgumentsMask = 0x00FFFFFFU ,
460
459
ConventionMask = 0x0F000000U ,
@@ -471,16 +470,16 @@ class TargetFunctionTypeFlags {
471
470
return TargetFunctionTypeFlags ((Data & ~NumArgumentsMask) | numArguments);
472
471
}
473
472
474
- constexpr TargetFunctionTypeFlags<Runtime >
473
+ constexpr TargetFunctionTypeFlags<int_type >
475
474
withConvention (FunctionMetadataConvention c) const {
476
475
return TargetFunctionTypeFlags ((Data & ~ConventionMask)
477
476
| (int_type (c) << ConventionShift));
478
477
}
479
478
480
- constexpr TargetFunctionTypeFlags<Runtime >
479
+ constexpr TargetFunctionTypeFlags<int_type >
481
480
withThrows (bool throws) const {
482
- return TargetFunctionTypeFlags<Runtime >((Data & ~ThrowsMask) |
483
- (throws ? ThrowsMask : 0 ));
481
+ return TargetFunctionTypeFlags<int_type >((Data & ~ThrowsMask) |
482
+ (throws ? ThrowsMask : 0 ));
484
483
}
485
484
486
485
unsigned getNumArguments () const {
@@ -499,18 +498,18 @@ class TargetFunctionTypeFlags {
499
498
return Data;
500
499
}
501
500
502
- static TargetFunctionTypeFlags<Runtime > fromIntValue (int_type Data) {
501
+ static TargetFunctionTypeFlags<int_type > fromIntValue (int_type Data) {
503
502
return TargetFunctionTypeFlags (Data);
504
503
}
505
504
506
- bool operator ==(TargetFunctionTypeFlags<Runtime > other) const {
505
+ bool operator ==(TargetFunctionTypeFlags<int_type > other) const {
507
506
return Data == other.Data ;
508
507
}
509
- bool operator !=(TargetFunctionTypeFlags<Runtime > other) const {
508
+ bool operator !=(TargetFunctionTypeFlags<int_type > other) const {
510
509
return Data != other.Data ;
511
510
}
512
511
};
513
- using FunctionTypeFlags = TargetFunctionTypeFlags<InProcess >;
512
+ using FunctionTypeFlags = TargetFunctionTypeFlags<size_t >;
514
513
515
514
// / Field types and flags as represented in a nominal type's field/case type
516
515
// / vector.
0 commit comments