summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-28 20:28:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-28 20:28:45 +0000
commite397dded7bf07c1e6b3a39fd39afef539933f53a (patch)
tree39c1a19419a5d10b27b9d6ed9910c360ff221026 /llvm
parentf7eb811d1ab77b9da6ec9a3ffe9daeeebdf0567f (diff)
downloadbcm5719-llvm-e397dded7bf07c1e6b3a39fd39afef539933f53a.tar.gz
bcm5719-llvm-e397dded7bf07c1e6b3a39fd39afef539933f53a.zip
MC: Put back the MCFragment vtable, so subclasses are destroyed properly (duh).
llvm-svn: 109649
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/MC/MCAssembler.h1
-rw-r--r--llvm/lib/MC/MCAssembler.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCAssembler.h b/llvm/include/llvm/MC/MCAssembler.h
index 97ab1a14339..50cb73bd273 100644
--- a/llvm/include/llvm/MC/MCAssembler.h
+++ b/llvm/include/llvm/MC/MCAssembler.h
@@ -87,6 +87,7 @@ protected:
public:
// Only for sentinel.
MCFragment();
+ virtual ~MCFragment();
FragmentType getKind() const { return Kind; }
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index c1365c1acb4..b24c8cab930 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -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))
{
OpenPOWER on IntegriCloud