don't make hte dtor private or we can't construct the class.
authorChris Lattner <sabre@nondot.org>
Mon, 8 Feb 2010 22:07:36 +0000 (22:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Feb 2010 22:07:36 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95587 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCExpr.h
lib/MC/MCExpr.cpp

index ca30b1e444f2ad54e991114d574b868790b6369d..04eeb6666a76142740d83c3ef26dd9268b0f4770 100644 (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) {}
   
index 07546c1b29b0e0c3dcf33f44cc4f296a071cec1e..afdaa00926caf750e02ea2b66e67970dfd606d39 100644 (file)
@@ -133,7 +133,7 @@ const MCSymbolRefExpr *MCSymbolRefExpr::Create(StringRef Name, MCContext &Ctx) {
   return Create(Ctx.GetOrCreateSymbol(Name), Ctx);
 }
 
-MCTargetExpr::~MCTargetExpr() {}
+void MCTargetExpr::Anchor() {}
 
 /* *** */