aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCExpr.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-08 22:07:36 +0000
committerChris Lattner <sabre@nondot.org>2010-02-08 22:07:36 +0000
commit4c013e32cde2ec54e777495e6c6d339f0ee0bccc (patch)
treeac387e0437aaf6871baa522cc39cd11f58a4d886 /include/llvm/MC/MCExpr.h
parenta4a317c452d93b85bdd5c6f884caf0a637d92668 (diff)
downloadexternal_llvm-4c013e32cde2ec54e777495e6c6d339f0ee0bccc.zip
external_llvm-4c013e32cde2ec54e777495e6c6d339f0ee0bccc.tar.gz
external_llvm-4c013e32cde2ec54e777495e6c6d339f0ee0bccc.tar.bz2
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
Diffstat (limited to 'include/llvm/MC/MCExpr.h')
-rw-r--r--include/llvm/MC/MCExpr.h2
1 files changed, 1 insertions, 1 deletions
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 @@ 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) {}