blob: f036577668ecfba80bad870632bff0548c37374b [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//
6// The PruneEmptyDeclarations function prunes unnecessary empty declarations and declarators from the AST.
7
8#ifndef COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_
9#define COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_
10
Jamie Madill45bcc782016-11-07 13:58:48 -050011namespace sh
12{
Olli Etuahoc6833112015-04-22 15:15:54 +030013class TIntermNode;
14
15void PruneEmptyDeclarations(TIntermNode *root);
Jamie Madill45bcc782016-11-07 13:58:48 -050016}
Olli Etuahoc6833112015-04-22 15:15:54 +030017
18#endif // COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_