forked from OSchip/llvm-project
don't make hte dtor private or we can't construct the class.
llvm-svn: 95587
This commit is contained in:
parent
586d0f926c
commit
54d88f1759
|
@ -333,7 +333,7 @@ public:
|
||||||
/// NOTE: All subclasses are required to have trivial destructors because
|
/// NOTE: All subclasses are required to have trivial destructors because
|
||||||
/// MCExprs are bump pointer allocated and not destructed.
|
/// MCExprs are bump pointer allocated and not destructed.
|
||||||
class MCTargetExpr : public MCExpr {
|
class MCTargetExpr : public MCExpr {
|
||||||
virtual ~MCTargetExpr(); // Not accessible.
|
virtual void Anchor();
|
||||||
protected:
|
protected:
|
||||||
MCTargetExpr() : MCExpr(Target) {}
|
MCTargetExpr() : MCExpr(Target) {}
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ const MCSymbolRefExpr *MCSymbolRefExpr::Create(StringRef Name, MCContext &Ctx) {
|
||||||
return Create(Ctx.GetOrCreateSymbol(Name), Ctx);
|
return Create(Ctx.GetOrCreateSymbol(Name), Ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
MCTargetExpr::~MCTargetExpr() {}
|
void MCTargetExpr::Anchor() {}
|
||||||
|
|
||||||
/* *** */
|
/* *** */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue