mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 06:25:01 +00:00
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
e89c9a442a
commit
7c4cb4a01e
@ -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…
x
Reference in New Issue
Block a user