forked from OSchip/llvm-project
[MC] Make MCFragment trivially destructible
This commit is contained in:
parent
e87d71668e
commit
2d0eb38d4c
|
@ -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;
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue