diff --git a/llvm/include/llvm/MC/MCFragment.h b/llvm/include/llvm/MC/MCFragment.h index b0def566c46a..ead41fc86ba1 100644 --- a/llvm/include/llvm/MC/MCFragment.h +++ b/llvm/include/llvm/MC/MCFragment.h @@ -80,8 +80,6 @@ protected: MCFragment(FragmentType Kind, bool HasInstructions, MCSection *Parent = nullptr); - ~MCFragment(); - public: MCFragment() = delete; MCFragment(const MCFragment &) = delete; diff --git a/llvm/lib/MC/MCFragment.cpp b/llvm/lib/MC/MCFragment.cpp index ae5bd65507bc..0180fe5584ee 100644 --- a/llvm/lib/MC/MCFragment.cpp +++ b/llvm/lib/MC/MCFragment.cpp @@ -232,8 +232,6 @@ uint64_t llvm::computeBundlePadding(const MCAssembler &Assembler, void ilist_alloc_traits::deleteNode(MCFragment *V) { V->destroy(); } -MCFragment::~MCFragment() = default; - MCFragment::MCFragment(FragmentType Kind, bool HasInstructions, MCSection *Parent) : Kind(Kind), HasInstructions(HasInstructions), LayoutOrder(0),