intel/compiler: Move the destructor from vec4_visitor to backend_shader
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 01:01:56 +0000 (17:01 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:37:52 +0000 (10:37 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_shader.cpp
src/intel/compiler/brw_shader.h
src/intel/compiler/brw_vec4.h
src/intel/compiler/brw_vec4_visitor.cpp

index 971ff4f608cac126409ea63c77ea94e74d94627e..b27a71c3c27f288b31080c34e69c9b976bc9d7d7 100644 (file)
@@ -673,6 +673,10 @@ backend_shader::backend_shader(const struct brw_compiler *compiler,
    stage_abbrev = _mesa_shader_stage_to_abbrev(stage);
 }
 
+backend_shader::~backend_shader()
+{
+}
+
 bool
 backend_reg::equals(const backend_reg &r) const
 {
index d632f6dcd4ea6351e67ba1ffc139236a3022d539..ed434acf5a0a0b6a7d82ac24a478e29702740dd1 100644 (file)
@@ -197,6 +197,7 @@ protected:
                   struct brw_stage_prog_data *stage_prog_data);
 
 public:
+   virtual ~backend_shader();
 
    const struct brw_compiler *compiler;
    void *log_data; /* Passed to compiler->*_log functions */
index d828da02ea0f38492393f838508ad5bd83ac0419..2e93ee2946fb5c1129478650730881c9e0a62985 100644 (file)
@@ -72,7 +72,6 @@ public:
                void *mem_ctx,
                 bool no_spills,
                 int shader_time_index);
-   virtual ~vec4_visitor();
 
    dst_reg dst_null_f()
    {
index db27eae2939e3814aee4ba7b8d05e617dd13563a..a845a8dc6335ae47b0c490dd10b08f0ae81664dc 100644 (file)
@@ -1883,10 +1883,6 @@ vec4_visitor::vec4_visitor(const struct brw_compiler *compiler,
    this->uniforms = 0;
 }
 
-vec4_visitor::~vec4_visitor()
-{
-}
-
 
 void
 vec4_visitor::fail(const char *format, ...)