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
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h
index ca30b1e..04eeb66 100644
--- a/include/llvm/MC/MCExpr.h
+++ b/include/llvm/MC/MCExpr.h
@@ -333,7 +333,7 @@
 /// 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 07546c1..afdaa00 100644
--- a/lib/MC/MCExpr.cpp
+++ b/lib/MC/MCExpr.cpp
@@ -133,7 +133,7 @@
   return Create(Ctx.GetOrCreateSymbol(Name), Ctx);
 }
 
-MCTargetExpr::~MCTargetExpr() {}
+void MCTargetExpr::Anchor() {}
 
 /* *** */