Skip to content

Commit

Permalink
[MC] Make MCFragment trivially destructible
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Nov 12, 2019
1 parent e87d716 commit 2d0eb38
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions llvm/include/llvm/MC/MCFragment.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ class MCFragment : public ilist_node_with_parent<MCFragment, MCSection> {
MCFragment(FragmentType Kind, bool HasInstructions,
MCSection *Parent = nullptr);

~MCFragment();

public:
MCFragment() = delete;
MCFragment(const MCFragment &) = delete;
Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/MC/MCFragment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ uint64_t llvm::computeBundlePadding(const MCAssembler &Assembler,

void ilist_alloc_traits<MCFragment>::deleteNode(MCFragment *V) { V->destroy(); }

MCFragment::~MCFragment() = default;

MCFragment::MCFragment(FragmentType Kind, bool HasInstructions,
MCSection *Parent)
: Kind(Kind), HasInstructions(HasInstructions), LayoutOrder(0),
Expand Down

0 comments on commit 2d0eb38

Please sign in to comment.