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:
parent
190636bcc1
commit
8fc20ade65
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue