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
This commit is contained in:
Chris Lattner 2010-02-08 22:07:36 +00:00
parent 3a3134ab12
commit df9c4380ee
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
/// MCExprs are bump pointer allocated and not destructed.
class MCTargetExpr : public MCExpr {
virtual ~MCTargetExpr(); // Not accessible.
virtual void Anchor();
protected:
MCTargetExpr() : MCExpr(Target) {}

View File

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