[llvm] c008e92 - Apply clang-tidy fixes for modernize-use-equals-default in ELFObject.cpp (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 09:19:13 PDT 2022
Author: Kazu Hirata
Date: 2022-03-28T09:18:25-07:00
New Revision: c008e92b3357efdd0e7b8cf1fcc7346db7b6777d
URL: https://github.com/llvm/llvm-project/commit/c008e92b3357efdd0e7b8cf1fcc7346db7b6777d
DIFF: https://github.com/llvm/llvm-project/commit/c008e92b3357efdd0e7b8cf1fcc7346db7b6777d.diff
LOG: Apply clang-tidy fixes for modernize-use-equals-default in ELFObject.cpp (NFC)
Added:
Modified:
llvm/lib/ObjCopy/ELF/ELFObject.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjCopy/ELF/ELFObject.cpp b/llvm/lib/ObjCopy/ELF/ELFObject.cpp
index fce46beed5a38..b0bf1402e4485 100644
--- a/llvm/lib/ObjCopy/ELF/ELFObject.cpp
+++ b/llvm/lib/ObjCopy/ELF/ELFObject.cpp
@@ -1907,9 +1907,9 @@ template <class ELFT> Error ELFBuilder<ELFT>::build(bool EnsureSymtab) {
return readProgramHeaders(*HeadersFile);
}
-Writer::~Writer() {}
+Writer::~Writer() = default;
-Reader::~Reader() {}
+Reader::~Reader() = default;
Expected<std::unique_ptr<Object>>
BinaryReader::create(bool /*EnsureSymtab*/) const {
More information about the llvm-commits
mailing list