blob: f9289780105e83362848ca86993df16b53ecc9b2 [file] [log] [blame]
Olli Etuahoc6833112015-04-22 15:15:54 +03001//
2// Copyright (c) 2002-2015 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
Jamie Madilld7b1ab52016-12-12 14:42:19 -05006// The PruneEmptyDeclarations function prunes unnecessary empty declarations and declarators from
7// the AST.
Olli Etuahoc6833112015-04-22 15:15:54 +03008
9#ifndef COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_
10#define COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_
11
Jamie Madill45bcc782016-11-07 13:58:48 -050012namespace sh
13{
Olli Etuahoc6833112015-04-22 15:15:54 +030014class TIntermNode;
15
16void PruneEmptyDeclarations(TIntermNode *root);
Jamie Madill45bcc782016-11-07 13:58:48 -050017}
Olli Etuahoc6833112015-04-22 15:15:54 +030018
19#endif // COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_