[llvm] r194568 - Fix -Wdelete-non-virtual-dtor warnings by making SampleProfile methods non-virtual
Alexey Samsonov
samsonov at google.com
Wed Nov 13 05:09:39 PST 2013
Author: samsonov
Date: Wed Nov 13 07:09:39 2013
New Revision: 194568
URL: http://llvm.org/viewvc/llvm-project?rev=194568&view=rev
Log:
Fix -Wdelete-non-virtual-dtor warnings by making SampleProfile methods non-virtual
Modified:
llvm/trunk/lib/Transforms/Scalar/SampleProfile.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SampleProfile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SampleProfile.cpp?rev=194568&r1=194567&r2=194568&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SampleProfile.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SampleProfile.cpp Wed Nov 13 07:09:39 2013
@@ -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);
More information about the llvm-commits
mailing list