[llvm-commits] [llvm] r95587 - in /llvm/trunk: include/llvm/MC/MCExpr.h lib/MC/MCExpr.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 8 14:07:36 PST 2010
Author: lattner
Date: Mon Feb 8 16:07:36 2010
New Revision: 95587
URL: http://llvm.org/viewvc/llvm-project?rev=95587&view=rev
Log:
don't make hte dtor private or we can't construct the class.
Modified:
llvm/trunk/include/llvm/MC/MCExpr.h
llvm/trunk/lib/MC/MCExpr.cpp
Modified: llvm/trunk/include/llvm/MC/MCExpr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCExpr.h?rev=95587&r1=95586&r2=95587&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCExpr.h (original)
+++ llvm/trunk/include/llvm/MC/MCExpr.h Mon Feb 8 16:07:36 2010
@@ -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) {}
Modified: llvm/trunk/lib/MC/MCExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCExpr.cpp?rev=95587&r1=95586&r2=95587&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCExpr.cpp (original)
+++ llvm/trunk/lib/MC/MCExpr.cpp Mon Feb 8 16:07:36 2010
@@ -133,7 +133,7 @@
return Create(Ctx.GetOrCreateSymbol(Name), Ctx);
}
-MCTargetExpr::~MCTargetExpr() {}
+void MCTargetExpr::Anchor() {}
/* *** */
More information about the llvm-commits
mailing list