@@ -152,7 +152,7 @@ class DebugNode : public MDNode {
152
152
assert (Tag < 1u << 16 );
153
153
SubclassData16 = Tag;
154
154
}
155
- ~DebugNode () {}
155
+ ~DebugNode () = default ;
156
156
157
157
template <class Ty > Ty *getOperandAs (unsigned I) const {
158
158
return cast_or_null<Ty>(getOperand (I));
@@ -328,7 +328,7 @@ class MDSubrange : public DebugNode {
328
328
: DebugNode(C, MDSubrangeKind, Storage, dwarf::DW_TAG_subrange_type,
329
329
None),
330
330
Count (Count), LowerBound(LowerBound) {}
331
- ~MDSubrange () {}
331
+ ~MDSubrange () = default ;
332
332
333
333
static MDSubrange *getImpl (LLVMContext &Context, int64_t Count,
334
334
int64_t LowerBound, StorageType Storage,
@@ -366,7 +366,7 @@ class MDEnumerator : public DebugNode {
366
366
ArrayRef<Metadata *> Ops)
367
367
: DebugNode(C, MDEnumeratorKind, Storage, dwarf::DW_TAG_enumerator, Ops),
368
368
Value (Value) {}
369
- ~MDEnumerator () {}
369
+ ~MDEnumerator () = default ;
370
370
371
371
static MDEnumerator *getImpl (LLVMContext &Context, int64_t Value,
372
372
StringRef Name, StorageType Storage,
@@ -411,7 +411,7 @@ class MDScope : public DebugNode {
411
411
MDScope (LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag,
412
412
ArrayRef<Metadata *> Ops)
413
413
: DebugNode(C, ID, Storage, Tag, Ops) {}
414
- ~MDScope () {}
414
+ ~MDScope () = default ;
415
415
416
416
public:
417
417
MDFile *getFile () const { return cast_or_null<MDFile>(getRawFile ()); }
@@ -461,7 +461,7 @@ class MDFile : public MDScope {
461
461
462
462
MDFile (LLVMContext &C, StorageType Storage, ArrayRef<Metadata *> Ops)
463
463
: MDScope(C, MDFileKind, Storage, dwarf::DW_TAG_file_type, Ops) {}
464
- ~MDFile () {}
464
+ ~MDFile () = default ;
465
465
466
466
static MDFile *getImpl (LLVMContext &Context, StringRef Filename,
467
467
StringRef Directory, StorageType Storage,
@@ -528,7 +528,7 @@ class MDType : public MDScope {
528
528
: MDScope(C, ID, Storage, Tag, Ops), Line(Line), Flags(Flags),
529
529
SizeInBits (SizeInBits), AlignInBits(AlignInBits),
530
530
OffsetInBits(OffsetInBits) {}
531
- ~MDType () {}
531
+ ~MDType () = default ;
532
532
533
533
public:
534
534
TempMDType clone () const {
@@ -607,7 +607,7 @@ class MDBasicType : public MDType {
607
607
: MDType(C, MDBasicTypeKind, Storage, Tag, 0 , SizeInBits, AlignInBits, 0 ,
608
608
0 , Ops),
609
609
Encoding (Encoding) {}
610
- ~MDBasicType () {}
610
+ ~MDBasicType () = default ;
611
611
612
612
static MDBasicType *getImpl (LLVMContext &Context, unsigned Tag,
613
613
StringRef Name, uint64_t SizeInBits,
@@ -658,7 +658,7 @@ class MDDerivedTypeBase : public MDType {
658
658
ArrayRef<Metadata *> Ops)
659
659
: MDType(C, ID, Storage, Tag, Line, SizeInBits, AlignInBits, OffsetInBits,
660
660
Flags, Ops) {}
661
- ~MDDerivedTypeBase () {}
661
+ ~MDDerivedTypeBase () = default ;
662
662
663
663
public:
664
664
MDTypeRef getBaseType () const { return MDTypeRef (getRawBaseType ()); }
@@ -686,7 +686,7 @@ class MDDerivedType : public MDDerivedTypeBase {
686
686
uint64_t OffsetInBits, unsigned Flags, ArrayRef<Metadata *> Ops)
687
687
: MDDerivedTypeBase(C, MDDerivedTypeKind, Storage, Tag, Line, SizeInBits,
688
688
AlignInBits, OffsetInBits, Flags, Ops) {}
689
- ~MDDerivedType () {}
689
+ ~MDDerivedType () = default ;
690
690
691
691
static MDDerivedType *getImpl (LLVMContext &Context, unsigned Tag,
692
692
StringRef Name, MDFile *File, unsigned Line,
@@ -763,7 +763,7 @@ class MDCompositeTypeBase : public MDDerivedTypeBase {
763
763
: MDDerivedTypeBase(C, ID, Storage, Tag, Line, SizeInBits, AlignInBits,
764
764
OffsetInBits, Flags, Ops),
765
765
RuntimeLang (RuntimeLang) {}
766
- ~MDCompositeTypeBase () {}
766
+ ~MDCompositeTypeBase () = default ;
767
767
768
768
public:
769
769
DebugNodeArray getElements () const {
@@ -824,7 +824,7 @@ class MDCompositeType : public MDCompositeTypeBase {
824
824
: MDCompositeTypeBase(C, MDCompositeTypeKind, Storage, Tag, Line,
825
825
RuntimeLang, SizeInBits, AlignInBits, OffsetInBits,
826
826
Flags, Ops) {}
827
- ~MDCompositeType () {}
827
+ ~MDCompositeType () = default ;
828
828
829
829
static MDCompositeType *
830
830
getImpl (LLVMContext &Context, unsigned Tag, StringRef Name, Metadata *File,
@@ -907,7 +907,7 @@ class MDSubroutineType : public MDCompositeTypeBase {
907
907
: MDCompositeTypeBase(C, MDSubroutineTypeKind, Storage,
908
908
dwarf::DW_TAG_subroutine_type, 0 , 0 , 0 , 0 , 0 , Flags,
909
909
Ops) {}
910
- ~MDSubroutineType () {}
910
+ ~MDSubroutineType () = default ;
911
911
912
912
static MDSubroutineType *getImpl (LLVMContext &Context, unsigned Flags,
913
913
MDTypeRefArray TypeArray,
@@ -958,7 +958,7 @@ class MDCompileUnit : public MDScope {
958
958
: MDScope(C, MDCompileUnitKind, Storage, dwarf::DW_TAG_compile_unit, Ops),
959
959
SourceLanguage (SourceLanguage), IsOptimized(IsOptimized),
960
960
RuntimeVersion(RuntimeVersion), EmissionKind(EmissionKind) {}
961
- ~MDCompileUnit () {}
961
+ ~MDCompileUnit () = default ;
962
962
963
963
static MDCompileUnit *
964
964
getImpl (LLVMContext &Context, unsigned SourceLanguage, MDFile *File,
@@ -1083,7 +1083,7 @@ class MDLocalScope : public MDScope {
1083
1083
MDLocalScope (LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag,
1084
1084
ArrayRef<Metadata *> Ops)
1085
1085
: MDScope(C, ID, Storage, Tag, Ops) {}
1086
- ~MDLocalScope () {}
1086
+ ~MDLocalScope () = default ;
1087
1087
1088
1088
public:
1089
1089
// / \brief Get the subprogram for this scope.
@@ -1221,7 +1221,7 @@ class MDSubprogram : public MDLocalScope {
1221
1221
Line (Line), ScopeLine(ScopeLine), Virtuality(Virtuality),
1222
1222
VirtualIndex(VirtualIndex), Flags(Flags), IsLocalToUnit(IsLocalToUnit),
1223
1223
IsDefinition(IsDefinition), IsOptimized(IsOptimized) {}
1224
- ~MDSubprogram () {}
1224
+ ~MDSubprogram () = default ;
1225
1225
1226
1226
static MDSubprogram *
1227
1227
getImpl (LLVMContext &Context, MDScopeRef Scope, StringRef Name,
@@ -1383,7 +1383,7 @@ class MDLexicalBlockBase : public MDLocalScope {
1383
1383
MDLexicalBlockBase (LLVMContext &C, unsigned ID, StorageType Storage,
1384
1384
ArrayRef<Metadata *> Ops)
1385
1385
: MDLocalScope(C, ID, Storage, dwarf::DW_TAG_lexical_block, Ops) {}
1386
- ~MDLexicalBlockBase () {}
1386
+ ~MDLexicalBlockBase () = default ;
1387
1387
1388
1388
public:
1389
1389
MDLocalScope *getScope () const { return cast<MDLocalScope>(getRawScope ()); }
@@ -1407,7 +1407,7 @@ class MDLexicalBlock : public MDLexicalBlockBase {
1407
1407
unsigned Column, ArrayRef<Metadata *> Ops)
1408
1408
: MDLexicalBlockBase(C, MDLexicalBlockKind, Storage, Ops), Line(Line),
1409
1409
Column (Column) {}
1410
- ~MDLexicalBlock () {}
1410
+ ~MDLexicalBlock () = default ;
1411
1411
1412
1412
static MDLexicalBlock *getImpl (LLVMContext &Context, MDLocalScope *Scope,
1413
1413
MDFile *File, unsigned Line, unsigned Column,
@@ -1455,7 +1455,7 @@ class MDLexicalBlockFile : public MDLexicalBlockBase {
1455
1455
unsigned Discriminator, ArrayRef<Metadata *> Ops)
1456
1456
: MDLexicalBlockBase(C, MDLexicalBlockFileKind, Storage, Ops),
1457
1457
Discriminator (Discriminator) {}
1458
- ~MDLexicalBlockFile () {}
1458
+ ~MDLexicalBlockFile () = default ;
1459
1459
1460
1460
static MDLexicalBlockFile *getImpl (LLVMContext &Context, MDLocalScope *Scope,
1461
1461
MDFile *File, unsigned Discriminator,
@@ -1504,7 +1504,7 @@ class MDNamespace : public MDScope {
1504
1504
: MDScope(Context, MDNamespaceKind, Storage, dwarf::DW_TAG_namespace,
1505
1505
Ops),
1506
1506
Line (Line) {}
1507
- ~MDNamespace () {}
1507
+ ~MDNamespace () = default ;
1508
1508
1509
1509
static MDNamespace *getImpl (LLVMContext &Context, MDScope *Scope,
1510
1510
MDFile *File, StringRef Name, unsigned Line,
@@ -1549,7 +1549,7 @@ class MDTemplateParameter : public DebugNode {
1549
1549
MDTemplateParameter (LLVMContext &Context, unsigned ID, StorageType Storage,
1550
1550
unsigned Tag, ArrayRef<Metadata *> Ops)
1551
1551
: DebugNode(Context, ID, Storage, Tag, Ops) {}
1552
- ~MDTemplateParameter () {}
1552
+ ~MDTemplateParameter () = default ;
1553
1553
1554
1554
public:
1555
1555
StringRef getName () const { return getStringOperand (0 ); }
@@ -1572,7 +1572,7 @@ class MDTemplateTypeParameter : public MDTemplateParameter {
1572
1572
ArrayRef<Metadata *> Ops)
1573
1573
: MDTemplateParameter(Context, MDTemplateTypeParameterKind, Storage,
1574
1574
dwarf::DW_TAG_template_type_parameter, Ops) {}
1575
- ~MDTemplateTypeParameter () {}
1575
+ ~MDTemplateTypeParameter () = default ;
1576
1576
1577
1577
static MDTemplateTypeParameter *getImpl (LLVMContext &Context, StringRef Name,
1578
1578
MDTypeRef Type, StorageType Storage,
@@ -1609,7 +1609,7 @@ class MDTemplateValueParameter : public MDTemplateParameter {
1609
1609
unsigned Tag, ArrayRef<Metadata *> Ops)
1610
1610
: MDTemplateParameter(Context, MDTemplateValueParameterKind, Storage, Tag,
1611
1611
Ops) {}
1612
- ~MDTemplateValueParameter () {}
1612
+ ~MDTemplateValueParameter () = default ;
1613
1613
1614
1614
static MDTemplateValueParameter *getImpl (LLVMContext &Context, unsigned Tag,
1615
1615
StringRef Name, MDTypeRef Type,
@@ -1655,7 +1655,7 @@ class MDVariable : public DebugNode {
1655
1655
MDVariable (LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag,
1656
1656
unsigned Line, ArrayRef<Metadata *> Ops)
1657
1657
: DebugNode(C, ID, Storage, Tag, Ops), Line(Line) {}
1658
- ~MDVariable () {}
1658
+ ~MDVariable () = default ;
1659
1659
1660
1660
public:
1661
1661
unsigned getLine () const { return Line; }
@@ -1702,7 +1702,7 @@ class MDGlobalVariable : public MDVariable {
1702
1702
: MDVariable(C, MDGlobalVariableKind, Storage, dwarf::DW_TAG_variable,
1703
1703
Line, Ops),
1704
1704
IsLocalToUnit (IsLocalToUnit), IsDefinition(IsDefinition) {}
1705
- ~MDGlobalVariable () {}
1705
+ ~MDGlobalVariable () = default ;
1706
1706
1707
1707
static MDGlobalVariable *
1708
1708
getImpl (LLVMContext &Context, MDScope *Scope, StringRef Name,
@@ -1785,7 +1785,7 @@ class MDLocalVariable : public MDVariable {
1785
1785
ArrayRef<Metadata *> Ops)
1786
1786
: MDVariable(C, MDLocalVariableKind, Storage, Tag, Line, Ops), Arg(Arg),
1787
1787
Flags (Flags) {}
1788
- ~MDLocalVariable () {}
1788
+ ~MDLocalVariable () = default ;
1789
1789
1790
1790
static MDLocalVariable *getImpl (LLVMContext &Context, unsigned Tag,
1791
1791
MDScope *Scope, StringRef Name, MDFile *File,
@@ -1882,7 +1882,7 @@ class MDExpression : public MDNode {
1882
1882
MDExpression (LLVMContext &C, StorageType Storage, ArrayRef<uint64_t > Elements)
1883
1883
: MDNode(C, MDExpressionKind, Storage, None),
1884
1884
Elements (Elements.begin(), Elements.end()) {}
1885
- ~MDExpression () {}
1885
+ ~MDExpression () = default ;
1886
1886
1887
1887
static MDExpression *getImpl (LLVMContext &Context,
1888
1888
ArrayRef<uint64_t > Elements, StorageType Storage,
@@ -2021,7 +2021,7 @@ class MDObjCProperty : public DebugNode {
2021
2021
: DebugNode(C, MDObjCPropertyKind, Storage, dwarf::DW_TAG_APPLE_property,
2022
2022
Ops),
2023
2023
Line (Line), Attributes(Attributes) {}
2024
- ~MDObjCProperty () {}
2024
+ ~MDObjCProperty () = default ;
2025
2025
2026
2026
static MDObjCProperty *
2027
2027
getImpl (LLVMContext &Context, StringRef Name, MDFile *File, unsigned Line,
@@ -2099,7 +2099,7 @@ class MDImportedEntity : public DebugNode {
2099
2099
MDImportedEntity (LLVMContext &C, StorageType Storage, unsigned Tag,
2100
2100
unsigned Line, ArrayRef<Metadata *> Ops)
2101
2101
: DebugNode(C, MDImportedEntityKind, Storage, Tag, Ops), Line(Line) {}
2102
- ~MDImportedEntity () {}
2102
+ ~MDImportedEntity () = default ;
2103
2103
2104
2104
static MDImportedEntity *getImpl (LLVMContext &Context, unsigned Tag,
2105
2105
MDScope *Scope, DebugNodeRef Entity,
0 commit comments