@@ -1172,16 +1172,15 @@ class DICompositeType : public DIType {
1172
1172
friend class MDNode ;
1173
1173
1174
1174
unsigned RuntimeLang;
1175
- llvm::APInt SpareBitsMask;
1176
1175
1177
1176
DICompositeType (LLVMContext &C, StorageType Storage, unsigned Tag,
1178
1177
unsigned Line, unsigned RuntimeLang, uint64_t SizeInBits,
1179
1178
uint32_t AlignInBits, uint64_t OffsetInBits,
1180
- uint32_t NumExtraInhabitants, APInt SpareBitsMask ,
1181
- DIFlags Flags, ArrayRef<Metadata *> Ops)
1179
+ uint32_t NumExtraInhabitants, DIFlags Flags ,
1180
+ ArrayRef<Metadata *> Ops)
1182
1181
: DIType(C, DICompositeTypeKind, Storage, Tag, Line, SizeInBits,
1183
1182
AlignInBits, OffsetInBits, NumExtraInhabitants, Flags, Ops),
1184
- RuntimeLang (RuntimeLang), SpareBitsMask(SpareBitsMask) {}
1183
+ RuntimeLang (RuntimeLang) {}
1185
1184
~DICompositeType () = default ;
1186
1185
1187
1186
// / Change fields in place.
@@ -1199,20 +1198,20 @@ class DICompositeType : public DIType {
1199
1198
getImpl (LLVMContext &Context, unsigned Tag, StringRef Name, Metadata *File,
1200
1199
unsigned Line, DIScope *Scope, DIType *BaseType, uint64_t SizeInBits,
1201
1200
uint32_t AlignInBits, uint64_t OffsetInBits, DIType *SpecificationOf,
1202
- uint32_t NumExtraInhabitants, APInt SpareBitsMask, DIFlags Flags ,
1203
- DINodeArray Elements, unsigned RuntimeLang, DIType *VTableHolder,
1201
+ uint32_t NumExtraInhabitants, DIFlags Flags, DINodeArray Elements ,
1202
+ unsigned RuntimeLang, DIType *VTableHolder,
1204
1203
DITemplateParameterArray TemplateParams, StringRef Identifier,
1205
1204
DIDerivedType *Discriminator, Metadata *DataLocation,
1206
1205
Metadata *Associated, Metadata *Allocated, Metadata *Rank,
1207
1206
DINodeArray Annotations, StorageType Storage,
1208
1207
bool ShouldCreate = true ) {
1209
- return getImpl (
1210
- Context, Tag, getCanonicalMDString (Context, Name), File, Line, Scope ,
1211
- BaseType, SizeInBits, AlignInBits, OffsetInBits, Flags, Elements.get (),
1212
- RuntimeLang, VTableHolder, TemplateParams.get (),
1213
- getCanonicalMDString (Context, Identifier), Discriminator, DataLocation ,
1214
- Associated, Allocated, Rank, Annotations.get (), SpecificationOf ,
1215
- NumExtraInhabitants, SpareBitsMask , Storage, ShouldCreate);
1208
+ return getImpl (Context, Tag, getCanonicalMDString (Context, Name), File,
1209
+ Line, Scope, BaseType, SizeInBits, AlignInBits, OffsetInBits ,
1210
+ Flags, Elements.get (), RuntimeLang, VTableHolder ,
1211
+ TemplateParams.get (),
1212
+ getCanonicalMDString (Context, Identifier), Discriminator,
1213
+ DataLocation, Associated, Allocated, Rank, Annotations.get (),
1214
+ SpecificationOf, NumExtraInhabitants , Storage, ShouldCreate);
1216
1215
}
1217
1216
static DICompositeType *
1218
1217
getImpl (LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File,
@@ -1223,8 +1222,8 @@ class DICompositeType : public DIType {
1223
1222
MDString *Identifier, Metadata *Discriminator, Metadata *DataLocation,
1224
1223
Metadata *Associated, Metadata *Allocated, Metadata *Rank,
1225
1224
Metadata *Annotations, Metadata *SpecificationOf,
1226
- uint32_t NumExtraInhabitants, APInt SpareBitsMask ,
1227
- StorageType Storage, bool ShouldCreate = true );
1225
+ uint32_t NumExtraInhabitants, StorageType Storage ,
1226
+ bool ShouldCreate = true );
1228
1227
1229
1228
TempDICompositeType cloneImpl () const {
1230
1229
return getTemporary (
@@ -1234,7 +1233,7 @@ class DICompositeType : public DIType {
1234
1233
getTemplateParams (), getIdentifier (), getDiscriminator (),
1235
1234
getRawDataLocation (), getRawAssociated (), getRawAllocated (),
1236
1235
getRawRank (), getAnnotations (), getSpecificationOf (),
1237
- getNumExtraInhabitants (), getSpareBitsMask () );
1236
+ getNumExtraInhabitants ());
1238
1237
}
1239
1238
1240
1239
public:
@@ -1249,11 +1248,11 @@ class DICompositeType : public DIType {
1249
1248
Metadata *DataLocation = nullptr , Metadata *Associated = nullptr ,
1250
1249
Metadata *Allocated = nullptr , Metadata *Rank = nullptr ,
1251
1250
DINodeArray Annotations = nullptr , DIType *SpecificationOf = nullptr ,
1252
- uint32_t NumExtraInhabitants = 0 , APInt SpareBitsMask = APInt() ),
1251
+ uint32_t NumExtraInhabitants = 0 ),
1253
1252
(Tag, Name, File, Line, Scope, BaseType, SizeInBits, AlignInBits,
1254
- OffsetInBits, SpecificationOf, NumExtraInhabitants, SpareBitsMask, Flags ,
1255
- Elements, RuntimeLang, VTableHolder, TemplateParams, Identifier,
1256
- Discriminator, DataLocation, Associated, Allocated, Rank, Annotations))
1253
+ OffsetInBits, SpecificationOf, NumExtraInhabitants, Flags, Elements ,
1254
+ RuntimeLang, VTableHolder, TemplateParams, Identifier, Discriminator ,
1255
+ DataLocation, Associated, Allocated, Rank, Annotations))
1257
1256
DEFINE_MDNODE_GET(
1258
1257
DICompositeType,
1259
1258
(unsigned Tag, MDString *Name, Metadata *File, unsigned Line,
@@ -1264,12 +1263,11 @@ class DICompositeType : public DIType {
1264
1263
Metadata *Discriminator = nullptr , Metadata *DataLocation = nullptr ,
1265
1264
Metadata *Associated = nullptr , Metadata *Allocated = nullptr ,
1266
1265
Metadata *Rank = nullptr , Metadata *Annotations = nullptr ,
1267
- Metadata *SpecificationOf = nullptr , uint32_t NumExtraInhabitants = 0 ,
1268
- APInt SpareBitsMask = APInt()),
1266
+ Metadata *SpecificationOf = nullptr , uint32_t NumExtraInhabitants = 0 ),
1269
1267
(Tag, Name, File, Line, Scope, BaseType, SizeInBits, AlignInBits,
1270
1268
OffsetInBits, Flags, Elements, RuntimeLang, VTableHolder, TemplateParams,
1271
1269
Identifier, Discriminator, DataLocation, Associated, Allocated, Rank,
1272
- Annotations, SpecificationOf, NumExtraInhabitants, SpareBitsMask ))
1270
+ Annotations, SpecificationOf, NumExtraInhabitants))
1273
1271
1274
1272
TempDICompositeType clone() const { return cloneImpl (); }
1275
1273
@@ -1285,7 +1283,7 @@ class DICompositeType : public DIType {
1285
1283
MDString *Name, Metadata *File, unsigned Line, Metadata *Scope,
1286
1284
Metadata *BaseType, uint64_t SizeInBits, uint32_t AlignInBits,
1287
1285
uint64_t OffsetInBits, Metadata *SpecificationOf,
1288
- uint32_t NumExtraInhabitants, APInt SpareBitsMask, DIFlags Flags,
1286
+ uint32_t NumExtraInhabitants, DIFlags Flags,
1289
1287
Metadata *Elements, unsigned RuntimeLang, Metadata *VTableHolder,
1290
1288
Metadata *TemplateParams, Metadata *Discriminator,
1291
1289
Metadata *DataLocation, Metadata *Associated, Metadata *Allocated,
@@ -1307,8 +1305,8 @@ class DICompositeType : public DIType {
1307
1305
MDString *Name, Metadata *File, unsigned Line, Metadata *Scope,
1308
1306
Metadata *BaseType, uint64_t SizeInBits, uint32_t AlignInBits,
1309
1307
uint64_t OffsetInBits, Metadata *SpecificationOf,
1310
- uint32_t NumExtraInhabitants, APInt SpareBitsMask, DIFlags Flags ,
1311
- Metadata *Elements, unsigned RuntimeLang, Metadata *VTableHolder,
1308
+ uint32_t NumExtraInhabitants, DIFlags Flags, Metadata *Elements ,
1309
+ unsigned RuntimeLang, Metadata *VTableHolder,
1312
1310
Metadata *TemplateParams, Metadata *Discriminator,
1313
1311
Metadata *DataLocation, Metadata *Associated,
1314
1312
Metadata *Allocated, Metadata *Rank, Metadata *Annotations);
@@ -1325,7 +1323,6 @@ class DICompositeType : public DIType {
1325
1323
}
1326
1324
StringRef getIdentifier () const { return getStringOperand (7 ); }
1327
1325
unsigned getRuntimeLang () const { return RuntimeLang; }
1328
- const APInt &getSpareBitsMask () const { return SpareBitsMask; }
1329
1326
1330
1327
Metadata *getRawBaseType () const { return getOperand (3 ); }
1331
1328
Metadata *getRawElements () const { return getOperand (4 ); }
0 commit comments