[MC] Make MCFragment trivially destructible

This commit is contained in:
Fangrui Song 2019-11-11 18:11:15 -08:00
parent e87d71668e
commit 2d0eb38d4c
2 changed files with 0 additions and 4 deletions

View File

@ -80,8 +80,6 @@ protected:
MCFragment(FragmentType Kind, bool HasInstructions, MCFragment(FragmentType Kind, bool HasInstructions,
MCSection *Parent = nullptr); MCSection *Parent = nullptr);
~MCFragment();
public: public:
MCFragment() = delete; MCFragment() = delete;
MCFragment(const MCFragment &) = delete; MCFragment(const MCFragment &) = delete;

View File

@ -232,8 +232,6 @@ uint64_t llvm::computeBundlePadding(const MCAssembler &Assembler,
void ilist_alloc_traits<MCFragment>::deleteNode(MCFragment *V) { V->destroy(); } void ilist_alloc_traits<MCFragment>::deleteNode(MCFragment *V) { V->destroy(); }
MCFragment::~MCFragment() = default;
MCFragment::MCFragment(FragmentType Kind, bool HasInstructions, MCFragment::MCFragment(FragmentType Kind, bool HasInstructions,
MCSection *Parent) MCSection *Parent)
: Kind(Kind), HasInstructions(HasInstructions), LayoutOrder(0), : Kind(Kind), HasInstructions(HasInstructions), LayoutOrder(0),