From: Alexey Samsonov Date: Wed, 13 Nov 2013 13:09:39 +0000 (+0000) Subject: Fix -Wdelete-non-virtual-dtor warnings by making SampleProfile methods non-virtual X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4223b9601058369536caa1d15c9c19bc7c5a3706;p=oota-llvm.git Fix -Wdelete-non-virtual-dtor warnings by making SampleProfile methods non-virtual git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194568 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/SampleProfile.cpp b/lib/Transforms/Scalar/SampleProfile.cpp index f5491859a16..9bcd702a913 100644 --- a/lib/Transforms/Scalar/SampleProfile.cpp +++ b/lib/Transforms/Scalar/SampleProfile.cpp @@ -81,10 +81,10 @@ class SampleProfile { public: SampleProfile(StringRef F) : Profiles(0), Filename(F) {} - virtual void dump(); - virtual void loadText(); - virtual void loadNative() { llvm_unreachable("not implemented"); } - virtual bool emitAnnotations(Function &F); + void dump(); + void loadText(); + void loadNative() { llvm_unreachable("not implemented"); } + bool emitAnnotations(Function &F); void printFunctionProfile(raw_ostream &OS, StringRef FName); void dumpFunctionProfile(StringRef FName);