Olli Etuaho | c683311 | 2015-04-22 15:15:54 +0300 | [diff] [blame] | 1 | // |
| 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 Madill | d7b1ab5 | 2016-12-12 14:42:19 -0500 | [diff] [blame] | 6 | // The PruneEmptyDeclarations function prunes unnecessary empty declarations and declarators from |
| 7 | // the AST. |
Olli Etuaho | c683311 | 2015-04-22 15:15:54 +0300 | [diff] [blame] | 8 | |
| 9 | #ifndef COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_ |
| 10 | #define COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_ |
| 11 | |
Jamie Madill | 45bcc78 | 2016-11-07 13:58:48 -0500 | [diff] [blame] | 12 | namespace sh |
| 13 | { |
Olli Etuaho | c683311 | 2015-04-22 15:15:54 +0300 | [diff] [blame] | 14 | class TIntermNode; |
| 15 | |
| 16 | void PruneEmptyDeclarations(TIntermNode *root); |
Jamie Madill | 45bcc78 | 2016-11-07 13:58:48 -0500 | [diff] [blame] | 17 | } |
Olli Etuaho | c683311 | 2015-04-22 15:15:54 +0300 | [diff] [blame] | 18 | |
| 19 | #endif // COMPILER_TRANSLATOR_PRUNEEMPTYDECLARATIONS_H_ |