glsl: Hide many classes local to individual .cpp files in anon namespaces.
This gives the compiler the chance to inline and not export class symbols even in the absence of LTO. Saves about 60kb on disk. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@.intel.com>
This commit is contained in:
parent
07572621bc
commit
10ef949424
33 changed files with 126 additions and 2 deletions
|
|
@ -127,6 +127,8 @@
|
|||
#include "program/hash_table.h"
|
||||
#include "program.h"
|
||||
|
||||
namespace {
|
||||
|
||||
struct call_node : public exec_node {
|
||||
class function *func;
|
||||
};
|
||||
|
|
@ -222,6 +224,8 @@ public:
|
|||
bool progress;
|
||||
};
|
||||
|
||||
} /* anonymous namespace */
|
||||
|
||||
static void
|
||||
destroy_links(exec_list *list, function *f)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue