don't make hte dtor private or we can't construct the class.

llvm-svn: 95587
This commit is contained in:
Chris Lattner 2010-02-08 22:07:36 +00:00
parent 586d0f926c
commit 54d88f1759
2 changed files with 2 additions and 2 deletions

View File

@ -333,7 +333,7 @@ public:
/// NOTE: All subclasses are required to have trivial destructors because /// NOTE: All subclasses are required to have trivial destructors because
/// MCExprs are bump pointer allocated and not destructed. /// MCExprs are bump pointer allocated and not destructed.
class MCTargetExpr : public MCExpr { class MCTargetExpr : public MCExpr {
virtual ~MCTargetExpr(); // Not accessible. virtual void Anchor();
protected: protected:
MCTargetExpr() : MCExpr(Target) {} MCTargetExpr() : MCExpr(Target) {}

View File

@ -133,7 +133,7 @@ const MCSymbolRefExpr *MCSymbolRefExpr::Create(StringRef Name, MCContext &Ctx) {
return Create(Ctx.GetOrCreateSymbol(Name), Ctx); return Create(Ctx.GetOrCreateSymbol(Name), Ctx);
} }
MCTargetExpr::~MCTargetExpr() {} void MCTargetExpr::Anchor() {}
/* *** */ /* *** */