diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-04-11 15:58:30 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-04-11 15:58:30 +0000 |
commit | 33fe0182f3623d0df6bb88a2fd83f48c6c561a6b (patch) | |
tree | 896a7235b385dcbc6b53617ff5fccdccceb6e079 /lib | |
parent | 79e18a8550402e8b1cff354c2a0008f37da5e627 (diff) |
Remove empty non-virtual destructors or mark them =default when non-public
These add no value but can make a class non-trivially copyable. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 3 | ||||
-rw-r--r-- | lib/Index/SimpleFormatContext.h | 2 | ||||
-rw-r--r-- | lib/Rewrite/RewriteRope.cpp | 4 |
3 files changed, 2 insertions, 7 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 587731db8b..a45446a706 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -486,7 +486,6 @@ public: } ObjCCommonTypesHelper(CodeGen::CodeGenModule &cgm); - ~ObjCCommonTypesHelper(){} }; /// ObjCTypesHelper - Helper class that encapsulates lazy @@ -595,7 +594,6 @@ public: public: ObjCTypesHelper(CodeGen::CodeGenModule &cgm); - ~ObjCTypesHelper() {} }; /// ObjCNonFragileABITypesHelper - will have all types needed by objective-c's @@ -733,7 +731,6 @@ public: llvm::Type *EHTypePtrTy; ObjCNonFragileABITypesHelper(CodeGen::CodeGenModule &cgm); - ~ObjCNonFragileABITypesHelper(){} }; class CGObjCCommonMac : public CodeGen::CGObjCRuntime { diff --git a/lib/Index/SimpleFormatContext.h b/lib/Index/SimpleFormatContext.h index 080a4ad04d..b884214989 100644 --- a/lib/Index/SimpleFormatContext.h +++ b/lib/Index/SimpleFormatContext.h @@ -44,8 +44,6 @@ public: Diagnostics->setClient(new IgnoringDiagConsumer, true); } - ~SimpleFormatContext() { } - FileID createInMemoryFile(StringRef Name, StringRef Content) { std::unique_ptr<llvm::MemoryBuffer> Source = llvm::MemoryBuffer::getMemBuffer(Content); diff --git a/lib/Rewrite/RewriteRope.cpp b/lib/Rewrite/RewriteRope.cpp index 1c82ee4a67..451ad07e4e 100644 --- a/lib/Rewrite/RewriteRope.cpp +++ b/lib/Rewrite/RewriteRope.cpp @@ -89,9 +89,9 @@ namespace { bool IsLeaf; RopePieceBTreeNode(bool isLeaf) : Size(0), IsLeaf(isLeaf) {} - ~RopePieceBTreeNode() {} - public: + ~RopePieceBTreeNode() = default; + public: bool isLeaf() const { return IsLeaf; } unsigned size() const { return Size; } |