gcc 4.0: Add some virtual destructors to make gcc 4.0 happy.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 7 Jun 2011 07:24:49 +0000 (00:24 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 7 Jun 2011 07:24:49 +0000 (00:24 -0700)
src/base/stats/output.hh
src/cpu/inorder/resource_pool.hh

index d45e32f7750e43d5a14bc63805bde714c1d2e415..26c4c5bbd345fd82a73e148abfdb8f969fe04d84 100644 (file)
@@ -46,6 +46,7 @@ class FormulaInfo;
 
 struct Output
 {
+    virtual ~Output() {}
     virtual void begin() = 0;
     virtual void end() = 0;
     virtual bool valid() const = 0;
index 9d94396654e8c59317ee5f5b57b65f21c015dd18..b420110912af3bc987b6921a22a79df25c884339 100644 (file)
@@ -122,7 +122,7 @@ class ResourcePool {
 
   public:
     ResourcePool(InOrderCPU *_cpu, ThePipeline::Params *params);
-    ~ResourcePool();    
+    virtual ~ResourcePool();
 
     std::string name();