diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-08 22:07:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-08 22:07:36 +0000 |
commit | df9c4380ee7e60c1de5cae32685b113170b1faa2 (patch) | |
tree | ac387e0437aaf6871baa522cc39cd11f58a4d886 | |
parent | 3a3134ab12f3aa65f9791f702a73f6d0b2af423f (diff) |
don't make hte dtor private or we can't construct the class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95587 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/MC/MCExpr.h | 2 | ||||
-rw-r--r-- | lib/MC/MCExpr.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h index ca30b1e444..04eeb6666a 100644 --- a/include/llvm/MC/MCExpr.h +++ b/include/llvm/MC/MCExpr.h @@ -333,7 +333,7 @@ public: /// NOTE: All subclasses are required to have trivial destructors because /// MCExprs are bump pointer allocated and not destructed. class MCTargetExpr : public MCExpr { - virtual ~MCTargetExpr(); // Not accessible. + virtual void Anchor(); protected: MCTargetExpr() : MCExpr(Target) {} diff --git a/lib/MC/MCExpr.cpp b/lib/MC/MCExpr.cpp index 07546c1b29..afdaa00926 100644 --- a/lib/MC/MCExpr.cpp +++ b/lib/MC/MCExpr.cpp @@ -133,7 +133,7 @@ const MCSymbolRefExpr *MCSymbolRefExpr::Create(StringRef Name, MCContext &Ctx) { return Create(Ctx.GetOrCreateSymbol(Name), Ctx); } -MCTargetExpr::~MCTargetExpr() {} +void MCTargetExpr::Anchor() {} /* *** */ |