Use default destructor and remove unnecessary virtual destructor

Only the virtual destructor in the base class is needed, and can use the
default.

llvm-svn: 263335
This commit is contained in:
Teresa Johnson 2016-03-12 05:38:22 +00:00
parent 190636bcc1
commit 8fc20ade65
1 changed files with 1 additions and 2 deletions

View File

@ -88,7 +88,7 @@ protected:
: Kind(K), Linkage(Linkage) {}
public:
virtual ~GlobalValueSummary() {}
virtual ~GlobalValueSummary() = default;
/// Which kind of summary subclass this is.
SummaryKind getSummaryKind() const { return Kind; }
@ -138,7 +138,6 @@ public:
/// Summary constructors.
FunctionSummary(GlobalValue::LinkageTypes Linkage, unsigned NumInsts)
: GlobalValueSummary(FunctionKind, Linkage), InstCount(NumInsts) {}
virtual ~FunctionSummary() {}
/// Check if this is a function summary.
static bool classof(const GlobalValueSummary *GVS) {