mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 13:21:30 +00:00
don't make hte dtor private or we can't construct the class.
llvm-svn: 95587
This commit is contained in:
parent
da4372a3c2
commit
39d41535ad
@ -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) {}
|
||||
|
||||
|
@ -133,7 +133,7 @@ const MCSymbolRefExpr *MCSymbolRefExpr::Create(StringRef Name, MCContext &Ctx) {
|
||||
return Create(Ctx.GetOrCreateSymbol(Name), Ctx);
|
||||
}
|
||||
|
||||
MCTargetExpr::~MCTargetExpr() {}
|
||||
void MCTargetExpr::Anchor() {}
|
||||
|
||||
/* *** */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user