xref: /aosp_15_r20/external/angle/src/compiler/translator/tree_ops/glsl/RegenerateStructNames.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2002 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 
7 #ifndef COMPILER_TRANSLATOR_TREEOPS_GLSL_REGENERATESTRUCTNAMES_H_
8 #define COMPILER_TRANSLATOR_TREEOPS_GLSL_REGENERATESTRUCTNAMES_H_
9 
10 #include "common/angleutils.h"
11 #include "common/debug.h"
12 
13 namespace sh
14 {
15 class TCompiler;
16 class TIntermBlock;
17 class TSymbolTable;
18 
19 #if defined(ANGLE_ENABLE_GLSL)
20 [[nodiscard]] bool RegenerateStructNames(TCompiler *compiler,
21                                          TIntermBlock *root,
22                                          TSymbolTable *symbolTable);
23 #else
RegenerateStructNames(TCompiler * compiler,TIntermBlock * root,TSymbolTable * symbolTable)24 [[nodiscard]] ANGLE_INLINE bool RegenerateStructNames(TCompiler *compiler,
25                                                       TIntermBlock *root,
26                                                       TSymbolTable *symbolTable)
27 {
28     UNREACHABLE();
29     return false;
30 }
31 #endif
32 
33 }  // namespace sh
34 
35 #endif  // COMPILER_TRANSLATOR_TREEOPS_GLSL_REGENERATESTRUCTNAMES_H_
36