@@ -2258,30 +2258,6 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
22582258 unsigned NumExpansions;
22592259 };
22602260
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-
22852261 class CountAttributedTypeBitfields {
22862262 friend class CountAttributedType ;
22872263
@@ -2321,7 +2297,6 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
23212297 DependentTemplateSpecializationTypeBits;
23222298 PackExpansionTypeBitfields PackExpansionTypeBits;
23232299 CountAttributedTypeBitfields CountAttributedTypeBits;
2324- PresefinedSugarTypeBitfields PredefinedSugarTypeBits;
23252300 };
23262301
23272302private:
@@ -8063,37 +8038,6 @@ class DependentBitIntType final : public Type, public llvm::FoldingSetNode {
80638038 }
80648039};
80658040
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-
80978041// / A qualifier set is used to build a set of qualifiers.
80988042class QualifierCollector : public Qualifiers {
80998043public:
0 commit comments