Skip to content

Commit 3a3cb92

Browse files
[llvm] Use = default (NFC)
1 parent 1391f91 commit 3a3cb92

File tree

138 files changed

+171
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+171
-178
lines changed

llvm/lib/Analysis/CaptureTracking.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ unsigned llvm::getDefaultMaxUsesToExploreForCaptureTracking() {
5252
return DefaultMaxUsesToExplore;
5353
}
5454

55-
CaptureTracker::~CaptureTracker() {}
55+
CaptureTracker::~CaptureTracker() = default;
5656

5757
bool CaptureTracker::shouldExplore(const Use *U) { return true; }
5858

llvm/lib/Analysis/DDG.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ template class llvm::DirectedGraph<DDGNode, DDGEdge>;
3434
//===--------------------------------------------------------------------===//
3535
// DDGNode implementation
3636
//===--------------------------------------------------------------------===//
37-
DDGNode::~DDGNode() {}
37+
DDGNode::~DDGNode() = default;
3838

3939
bool DDGNode::collectInstructions(
4040
llvm::function_ref<bool(Instruction *)> const &Pred,

llvm/lib/Analysis/GlobalsModRef.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ class GlobalsAAResult::FunctionInfo {
6868
/// should provide this much alignment at least, but this makes it clear we
6969
/// specifically rely on this amount of alignment.
7070
struct alignas(8) AlignedMap {
71-
AlignedMap() {}
72-
AlignedMap(const AlignedMap &Arg) : Map(Arg.Map) {}
71+
AlignedMap() = default;
72+
AlignedMap(const AlignedMap &Arg) = default;
7373
GlobalInfoMapType Map;
7474
};
7575

@@ -102,7 +102,7 @@ class GlobalsAAResult::FunctionInfo {
102102
"Insufficient low bits to store our flag and ModRef info.");
103103

104104
public:
105-
FunctionInfo() {}
105+
FunctionInfo() = default;
106106
~FunctionInfo() {
107107
delete Info.getPointer();
108108
}
@@ -979,7 +979,7 @@ GlobalsAAResult::GlobalsAAResult(GlobalsAAResult &&Arg)
979979
}
980980
}
981981

982-
GlobalsAAResult::~GlobalsAAResult() {}
982+
GlobalsAAResult::~GlobalsAAResult() = default;
983983

984984
/*static*/ GlobalsAAResult GlobalsAAResult::analyzeModule(
985985
Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI,

llvm/lib/Analysis/InlineCost.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class CallAnalyzer : public InstVisitor<CallAnalyzer, bool> {
198198
friend class InstVisitor<CallAnalyzer, bool>;
199199

200200
protected:
201-
virtual ~CallAnalyzer() {}
201+
virtual ~CallAnalyzer() = default;
202202
/// The TargetTransformInfo available for this compilation.
203203
const TargetTransformInfo &TTI;
204204

@@ -1020,7 +1020,7 @@ class InlineCostCallAnalyzer final : public CallAnalyzer {
10201020
return None;
10211021
}
10221022

1023-
virtual ~InlineCostCallAnalyzer() {}
1023+
virtual ~InlineCostCallAnalyzer() = default;
10241024
int getThreshold() const { return Threshold; }
10251025
int getCost() const { return Cost; }
10261026
Optional<CostBenefitPair> getCostBenefitPair() { return CostBenefit; }

llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ InlineSizeEstimatorAnalysis::InlineSizeEstimatorAnalysis(
261261
namespace llvm {
262262
class TFModelEvaluator {};
263263
} // namespace llvm
264-
InlineSizeEstimatorAnalysis::InlineSizeEstimatorAnalysis() {}
264+
InlineSizeEstimatorAnalysis::InlineSizeEstimatorAnalysis() = default;
265265
InlineSizeEstimatorAnalysis ::InlineSizeEstimatorAnalysis(
266266
InlineSizeEstimatorAnalysis &&) {}
267-
InlineSizeEstimatorAnalysis::~InlineSizeEstimatorAnalysis() {}
267+
InlineSizeEstimatorAnalysis::~InlineSizeEstimatorAnalysis() = default;
268268
InlineSizeEstimatorAnalysis::Result
269269
InlineSizeEstimatorAnalysis::run(const Function &F,
270270
FunctionAnalysisManager &FAM) {

llvm/lib/Analysis/MemorySSA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ template <class AliasAnalysisType> class ClobberWalker {
733733
struct generic_def_path_iterator
734734
: public iterator_facade_base<generic_def_path_iterator<T, Walker>,
735735
std::forward_iterator_tag, T *> {
736-
generic_def_path_iterator() {}
736+
generic_def_path_iterator() = default;
737737
generic_def_path_iterator(Walker *W, ListIndex N) : W(W), N(N) {}
738738

739739
T &operator*() const { return curNode(); }

llvm/lib/Analysis/SyncDependenceAnalysis.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ SyncDependenceAnalysis::SyncDependenceAnalysis(const DominatorTree &DT,
259259
[&](const BasicBlock &BB) { LoopPO.appendBlock(BB); });
260260
}
261261

262-
SyncDependenceAnalysis::~SyncDependenceAnalysis() {}
262+
SyncDependenceAnalysis::~SyncDependenceAnalysis() = default;
263263

264264
// divergence propagator for reducible CFGs
265265
struct DivergencePropagator {

llvm/lib/Analysis/TargetTransformInfo.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ bool HardwareLoopInfo::isHardwareLoopCandidate(ScalarEvolution &SE,
179179
TargetTransformInfo::TargetTransformInfo(const DataLayout &DL)
180180
: TTIImpl(new Model<NoTTIImpl>(NoTTIImpl(DL))) {}
181181

182-
TargetTransformInfo::~TargetTransformInfo() {}
182+
TargetTransformInfo::~TargetTransformInfo() = default;
183183

184184
TargetTransformInfo::TargetTransformInfo(TargetTransformInfo &&Arg)
185185
: TTIImpl(std::move(Arg.TTIImpl)) {}
@@ -1155,7 +1155,7 @@ TargetTransformInfo::getInstructionThroughput(const Instruction *I) const {
11551155
}
11561156
}
11571157

1158-
TargetTransformInfo::Concept::~Concept() {}
1158+
TargetTransformInfo::Concept::~Concept() = default;
11591159

11601160
TargetIRAnalysis::TargetIRAnalysis() : TTICallback(&getDefaultTTI) {}
11611161

llvm/lib/DWARFLinker/DWARFLinker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ static bool isTypeTag(uint16_t Tag) {
132132
return false;
133133
}
134134

135-
AddressesMap::~AddressesMap() {}
135+
AddressesMap::~AddressesMap() = default;
136136

137-
DwarfEmitter::~DwarfEmitter() {}
137+
DwarfEmitter::~DwarfEmitter() = default;
138138

139139
static Optional<StringRef> StripTemplateParameters(StringRef Name) {
140140
// We are looking for template parameters to strip from Name. e.g.

llvm/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static inline TypeLeafKind getTypeLeafKind(ContinuationRecordKind CK) {
4646
ContinuationRecordBuilder::ContinuationRecordBuilder()
4747
: SegmentWriter(Buffer), Mapping(SegmentWriter) {}
4848

49-
ContinuationRecordBuilder::~ContinuationRecordBuilder() {}
49+
ContinuationRecordBuilder::~ContinuationRecordBuilder() = default;
5050

5151
void ContinuationRecordBuilder::begin(ContinuationRecordKind RecordKind) {
5252
assert(!Kind.hasValue());

llvm/lib/DebugInfo/CodeView/DebugSubsection.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
using namespace llvm::codeview;
1212

13-
DebugSubsectionRef::~DebugSubsectionRef() {}
13+
DebugSubsectionRef::~DebugSubsectionRef() = default;
1414

15-
DebugSubsection::~DebugSubsection() {}
15+
DebugSubsection::~DebugSubsection() = default;

llvm/lib/DebugInfo/CodeView/SimpleTypeSerializer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static void addPadding(BinaryStreamWriter &Writer) {
2929

3030
SimpleTypeSerializer::SimpleTypeSerializer() : ScratchBuffer(MaxRecordLength) {}
3131

32-
SimpleTypeSerializer::~SimpleTypeSerializer() {}
32+
SimpleTypeSerializer::~SimpleTypeSerializer() = default;
3333

3434
template <typename T>
3535
ArrayRef<uint8_t> SimpleTypeSerializer::serialize(T &Record) {

llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ DbiModuleDescriptorBuilder::DbiModuleDescriptorBuilder(StringRef ModuleName,
4444
Layout.Mod = ModIndex;
4545
}
4646

47-
DbiModuleDescriptorBuilder::~DbiModuleDescriptorBuilder() {}
47+
DbiModuleDescriptorBuilder::~DbiModuleDescriptorBuilder() = default;
4848

4949
uint16_t DbiModuleDescriptorBuilder::getStreamIndex() const {
5050
return Layout.ModDiStream;

llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DbiStreamBuilder::DbiStreamBuilder(msf::MSFBuilder &Msf)
3030
PdbDllVersion(0), PdbDllRbld(0), Flags(0), MachineType(PDB_Machine::x86),
3131
Header(nullptr) {}
3232

33-
DbiStreamBuilder::~DbiStreamBuilder() {}
33+
DbiStreamBuilder::~DbiStreamBuilder() = default;
3434

3535
void DbiStreamBuilder::setVersionHeader(PdbRaw_DbiVer V) { VerHeader = V; }
3636

llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ GSIStreamBuilder::GSIStreamBuilder(msf::MSFBuilder &Msf)
286286
: Msf(Msf), PSH(std::make_unique<GSIHashStreamBuilder>()),
287287
GSH(std::make_unique<GSIHashStreamBuilder>()) {}
288288

289-
GSIStreamBuilder::~GSIStreamBuilder() {}
289+
GSIStreamBuilder::~GSIStreamBuilder() = default;
290290

291291
uint32_t GSIStreamBuilder::calculatePublicsHashStreamSize() const {
292292
uint32_t Size = 0;

llvm/lib/DebugInfo/PDB/Native/NativeFunctionSymbol.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ NativeFunctionSymbol::NativeFunctionSymbol(NativeSession &Session,
2525
: NativeRawSymbol(Session, PDB_SymType::Function, Id), Sym(Sym),
2626
RecordOffset(Offset) {}
2727

28-
NativeFunctionSymbol::~NativeFunctionSymbol() {}
28+
NativeFunctionSymbol::~NativeFunctionSymbol() = default;
2929

3030
void NativeFunctionSymbol::dump(raw_ostream &OS, int Indent,
3131
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeInlineSiteSymbol.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ NativeInlineSiteSymbol::NativeInlineSiteSymbol(
2525
: NativeRawSymbol(Session, PDB_SymType::InlineSite, Id), Sym(Sym),
2626
ParentAddr(ParentAddr) {}
2727

28-
NativeInlineSiteSymbol::~NativeInlineSiteSymbol() {}
28+
NativeInlineSiteSymbol::~NativeInlineSiteSymbol() = default;
2929

3030
void NativeInlineSiteSymbol::dump(raw_ostream &OS, int Indent,
3131
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativePublicSymbol.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ NativePublicSymbol::NativePublicSymbol(NativeSession &Session, SymIndexId Id,
2020
const codeview::PublicSym32 &Sym)
2121
: NativeRawSymbol(Session, PDB_SymType::PublicSymbol, Id), Sym(Sym) {}
2222

23-
NativePublicSymbol::~NativePublicSymbol() {}
23+
NativePublicSymbol::~NativePublicSymbol() = default;
2424

2525
void NativePublicSymbol::dump(raw_ostream &OS, int Indent,
2626
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ NativeSymbolEnumerator::NativeSymbolEnumerator(
2222
: NativeRawSymbol(Session, PDB_SymType::Data, Id), Parent(Parent),
2323
Record(std::move(Record)) {}
2424

25-
NativeSymbolEnumerator::~NativeSymbolEnumerator() {}
25+
NativeSymbolEnumerator::~NativeSymbolEnumerator() = default;
2626

2727
void NativeSymbolEnumerator::dump(raw_ostream &OS, int Indent,
2828
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeTypeArray.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ NativeTypeArray::NativeTypeArray(NativeSession &Session, SymIndexId Id,
2121
codeview::ArrayRecord Record)
2222
: NativeRawSymbol(Session, PDB_SymType::ArrayType, Id), Record(Record),
2323
Index(TI) {}
24-
NativeTypeArray::~NativeTypeArray() {}
24+
NativeTypeArray::~NativeTypeArray() = default;
2525

2626
void NativeTypeArray::dump(raw_ostream &OS, int Indent,
2727
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeTypeBuiltin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ NativeTypeBuiltin::NativeTypeBuiltin(NativeSession &PDBSession, SymIndexId Id,
1919
: NativeRawSymbol(PDBSession, PDB_SymType::BuiltinType, Id),
2020
Session(PDBSession), Mods(Mods), Type(T), Length(L) {}
2121

22-
NativeTypeBuiltin::~NativeTypeBuiltin() {}
22+
NativeTypeBuiltin::~NativeTypeBuiltin() = default;
2323

2424
void NativeTypeBuiltin::dump(raw_ostream &OS, int Indent,
2525
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ NativeTypeEnum::NativeTypeEnum(NativeSession &Session, SymIndexId Id,
123123
: NativeRawSymbol(Session, PDB_SymType::Enum, Id),
124124
UnmodifiedType(&UnmodifiedType), Modifiers(std::move(Modifier)) {}
125125

126-
NativeTypeEnum::~NativeTypeEnum() {}
126+
NativeTypeEnum::~NativeTypeEnum() = default;
127127

128128
void NativeTypeEnum::dump(raw_ostream &OS, int Indent,
129129
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeTypeFunctionSig.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void NativeTypeFunctionSig::initialize() {
9696
}
9797
}
9898

99-
NativeTypeFunctionSig::~NativeTypeFunctionSig() {}
99+
NativeTypeFunctionSig::~NativeTypeFunctionSig() = default;
100100

101101
void NativeTypeFunctionSig::initializeArgList(codeview::TypeIndex ArgListTI) {
102102
TpiStream &Tpi = cantFail(Session.getPDBFile().getPDBTpiStream());

llvm/lib/DebugInfo/PDB/Native/NativeTypePointer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ NativeTypePointer::NativeTypePointer(NativeSession &Session, SymIndexId Id,
2929
: NativeRawSymbol(Session, PDB_SymType::PointerType, Id), TI(TI),
3030
Record(std::move(Record)) {}
3131

32-
NativeTypePointer::~NativeTypePointer() {}
32+
NativeTypePointer::~NativeTypePointer() = default;
3333

3434
void NativeTypePointer::dump(raw_ostream &OS, int Indent,
3535
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeTypeTypedef.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ NativeTypeTypedef::NativeTypeTypedef(NativeSession &Session, SymIndexId Id,
99
: NativeRawSymbol(Session, PDB_SymType::Typedef, Id),
1010
Record(std::move(Typedef)) {}
1111

12-
NativeTypeTypedef::~NativeTypeTypedef() {}
12+
NativeTypeTypedef::~NativeTypeTypedef() = default;
1313

1414
void NativeTypeTypedef::dump(raw_ostream &OS, int Indent,
1515
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeTypeUDT.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ NativeTypeUDT::NativeTypeUDT(NativeSession &Session, SymIndexId Id,
3232
: NativeRawSymbol(Session, PDB_SymType::UDT, Id),
3333
UnmodifiedType(&UnmodifiedType), Modifiers(std::move(Modifier)) {}
3434

35-
NativeTypeUDT::~NativeTypeUDT() {}
35+
NativeTypeUDT::~NativeTypeUDT() = default;
3636

3737
void NativeTypeUDT::dump(raw_ostream &OS, int Indent,
3838
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/NativeTypeVTShape.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ NativeTypeVTShape::NativeTypeVTShape(NativeSession &Session, SymIndexId Id,
1010
: NativeRawSymbol(Session, PDB_SymType::VTableShape, Id), TI(TI),
1111
Record(std::move(SR)) {}
1212

13-
NativeTypeVTShape::~NativeTypeVTShape() {}
13+
NativeTypeVTShape::~NativeTypeVTShape() = default;
1414

1515
void NativeTypeVTShape::dump(raw_ostream &OS, int Indent,
1616
PdbSymbolIdField ShowIdFields,

llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ PDBFileBuilder::PDBFileBuilder(BumpPtrAllocator &Allocator)
3434
: Allocator(Allocator), InjectedSourceHashTraits(Strings),
3535
InjectedSourceTable(2) {}
3636

37-
PDBFileBuilder::~PDBFileBuilder() {}
37+
PDBFileBuilder::~PDBFileBuilder() = default;
3838

3939
Error PDBFileBuilder::initialize(uint32_t BlockSize) {
4040
auto ExpectedMsf = MSFBuilder::create(Allocator, BlockSize);

llvm/lib/DebugInfo/PDB/Native/SymbolStream.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ using namespace llvm::pdb;
2222
SymbolStream::SymbolStream(std::unique_ptr<MappedBlockStream> Stream)
2323
: Stream(std::move(Stream)) {}
2424

25-
SymbolStream::~SymbolStream() {}
25+
SymbolStream::~SymbolStream() = default;
2626

2727
Error SymbolStream::reload() {
2828
BinaryStreamReader Reader(*Stream);

llvm/lib/ExecutionEngine/GDBRegistrationListener.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ LLVM_ATTRIBUTE_USED void requiredSymbolDefinitionsFromOrcTargetProcess() {
7070
}
7171

7272
struct RegisteredObjectInfo {
73-
RegisteredObjectInfo() {}
73+
RegisteredObjectInfo() = default;
7474

7575
RegisteredObjectInfo(std::size_t Size, jit_code_entry *Entry,
7676
OwningBinary<ObjectFile> Obj)
@@ -96,7 +96,7 @@ class GDBJITRegistrationListener : public JITEventListener {
9696

9797
public:
9898
/// Instantiates the JIT service.
99-
GDBJITRegistrationListener() {}
99+
GDBJITRegistrationListener() = default;
100100

101101
/// Unregisters each object that was previously registered and releases all
102102
/// internal resources.

llvm/lib/ExecutionEngine/Interpreter/Interpreter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AllocaHolder {
3737
std::vector<void *> Allocations;
3838

3939
public:
40-
AllocaHolder() {}
40+
AllocaHolder() = default;
4141

4242
// Make this type move-only.
4343
AllocaHolder(AllocaHolder &&) = default;

llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ Error EHFrameNullTerminator::operator()(LinkGraph &G) {
756756
return Error::success();
757757
}
758758

759-
EHFrameRegistrar::~EHFrameRegistrar() {}
759+
EHFrameRegistrar::~EHFrameRegistrar() = default;
760760

761761
Error InProcessEHFrameRegistrar::registerEHFrames(
762762
orc::ExecutorAddrRange EHFrameSection) {

llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace jitlink {
2727
StringRef ELFLinkGraphBuilderBase::CommonSectionName(".common");
2828
ArrayRef<const char *> ELFLinkGraphBuilderBase::DwarfSectionNames = DWSecNames;
2929

30-
ELFLinkGraphBuilderBase::~ELFLinkGraphBuilderBase() {}
30+
ELFLinkGraphBuilderBase::~ELFLinkGraphBuilderBase() = default;
3131

3232
} // end namespace jitlink
3333
} // end namespace llvm

llvm/lib/ExecutionEngine/JITLink/JITLink.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ raw_ostream &operator<<(raw_ostream &OS, const SymbolLookupFlags &LF) {
336336

337337
void JITLinkAsyncLookupContinuation::anchor() {}
338338

339-
JITLinkContext::~JITLinkContext() {}
339+
JITLinkContext::~JITLinkContext() = default;
340340

341341
bool JITLinkContext::shouldAddDefaultTargetPasses(const Triple &TT) const {
342342
return true;

llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace llvm {
2121
namespace jitlink {
2222

23-
JITLinkerBase::~JITLinkerBase() {}
23+
JITLinkerBase::~JITLinkerBase() = default;
2424

2525
void JITLinkerBase::linkPhase1(std::unique_ptr<JITLinkerBase> Self) {
2626

llvm/lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ SimpleSegmentAlloc::Create(JITLinkMemoryManager &MemMgr, const JITLinkDylib *JD,
211211
SimpleSegmentAlloc::SimpleSegmentAlloc(SimpleSegmentAlloc &&) = default;
212212
SimpleSegmentAlloc &
213213
SimpleSegmentAlloc::operator=(SimpleSegmentAlloc &&) = default;
214-
SimpleSegmentAlloc::~SimpleSegmentAlloc() {}
214+
SimpleSegmentAlloc::~SimpleSegmentAlloc() = default;
215215

216216
SimpleSegmentAlloc::SegmentInfo SimpleSegmentAlloc::getSegInfo(AllocGroup AG) {
217217
auto I = ContentBlocks.find(AG);

llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static const char *CommonSectionName = "__common";
1919
namespace llvm {
2020
namespace jitlink {
2121

22-
MachOLinkGraphBuilder::~MachOLinkGraphBuilder() {}
22+
MachOLinkGraphBuilder::~MachOLinkGraphBuilder() = default;
2323

2424
Expected<std::unique_ptr<LinkGraph>> MachOLinkGraphBuilder::buildGraph() {
2525

llvm/lib/ExecutionEngine/MCJIT/MCJIT.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ class MCJIT : public ExecutionEngine {
7272

7373
class OwningModuleContainer {
7474
public:
75-
OwningModuleContainer() {
76-
}
75+
OwningModuleContainer() = default;
7776
~OwningModuleContainer() {
7877
freeModulePtrSet(AddedModules);
7978
freeModulePtrSet(LoadedModules);

0 commit comments

Comments
 (0)