MC: Put back the MCFragment vtable, so subclasses are destroyed properly (duh).

llvm-svn: 109649
This commit is contained in:
Daniel Dunbar 2010-07-28 20:28:45 +00:00
parent f68b6caf37
commit 1c35389c03
2 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,7 @@ protected:
public:
// Only for sentinel.
MCFragment();
virtual ~MCFragment();
FragmentType getKind() const { return Kind; }

View File

@ -178,6 +178,9 @@ uint64_t MCAsmLayout::getSectionSize(const MCSectionData *SD) const {
MCFragment::MCFragment() : Kind(FragmentType(~0)) {
}
MCFragment::~MCFragment() {
}
MCFragment::MCFragment(FragmentType _Kind, MCSectionData *_Parent)
: Kind(_Kind), Parent(_Parent), Atom(0), EffectiveSize(~UINT64_C(0))
{