@@ -2258,30 +2258,6 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
2258
2258
unsigned NumExpansions;
2259
2259
};
2260
2260
2261
- enum class PredefinedSugarKind {
2262
- // / The "size_t" type.
2263
- SizeT,
2264
-
2265
- // / The signed integer type corresponding to "size_t".
2266
- SignedSizeT,
2267
-
2268
- // / The "ptrdiff_t" type.
2269
- PtrdiffT,
2270
-
2271
- // Indicates how many items the enum has.
2272
- Last = PtrdiffT
2273
- };
2274
-
2275
- class PresefinedSugarTypeBitfields {
2276
- friend class PredefinedSugarType ;
2277
-
2278
- LLVM_PREFERRED_TYPE (TypeBitfields)
2279
- unsigned : NumTypeBits;
2280
-
2281
- LLVM_PREFERRED_TYPE (PredefinedSugarKind)
2282
- unsigned Kind : 8 ;
2283
- };
2284
-
2285
2261
class CountAttributedTypeBitfields {
2286
2262
friend class CountAttributedType ;
2287
2263
@@ -2321,7 +2297,6 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
2321
2297
DependentTemplateSpecializationTypeBits;
2322
2298
PackExpansionTypeBitfields PackExpansionTypeBits;
2323
2299
CountAttributedTypeBitfields CountAttributedTypeBits;
2324
- PresefinedSugarTypeBitfields PredefinedSugarTypeBits;
2325
2300
};
2326
2301
2327
2302
private:
@@ -8063,37 +8038,6 @@ class DependentBitIntType final : public Type, public llvm::FoldingSetNode {
8063
8038
}
8064
8039
};
8065
8040
8066
- class PredefinedSugarType final : public Type {
8067
- public:
8068
- friend class ASTContext ;
8069
- using Kind = PredefinedSugarKind;
8070
-
8071
- private:
8072
- PredefinedSugarType (Kind KD, const IdentifierInfo *IdentName,
8073
- QualType CanonicalType)
8074
- : Type(PredefinedSugar, CanonicalType, TypeDependence::None),
8075
- Name (IdentName) {
8076
- PredefinedSugarTypeBits.Kind = llvm::to_underlying (KD);
8077
- }
8078
-
8079
- static StringRef getName (Kind KD);
8080
-
8081
- const IdentifierInfo *Name;
8082
-
8083
- public:
8084
- bool isSugared () const { return true ; }
8085
-
8086
- QualType desugar () const { return getCanonicalTypeInternal (); }
8087
-
8088
- Kind getKind () const { return Kind (PredefinedSugarTypeBits.Kind ); }
8089
-
8090
- const IdentifierInfo *getIdentifier () const { return Name; }
8091
-
8092
- static bool classof (const Type *T) {
8093
- return T->getTypeClass () == PredefinedSugar;
8094
- }
8095
- };
8096
-
8097
8041
// / A qualifier set is used to build a set of qualifiers.
8098
8042
class QualifierCollector : public Qualifiers {
8099
8043
public:
0 commit comments