tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RemoveSwitchFallThrough.h (985B)


      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 // RemoveSwitchFallThrough.h: Remove fall-through from switch statements.
      7 // Note that it is unsafe to do further AST transformations on the AST generated
      8 // by this function. It leaves duplicate nodes in the AST making replacements
      9 // unreliable.
     10 
     11 #ifndef COMPILER_TRANSLATOR_TREEOPS_D3D_REMOVESWITCHFALLTHROUGH_H_
     12 #define COMPILER_TRANSLATOR_TREEOPS_D3D_REMOVESWITCHFALLTHROUGH_H_
     13 
     14 namespace sh
     15 {
     16 
     17 class TIntermBlock;
     18 class PerformanceDiagnostics;
     19 
     20 // When given a statementList from a switch AST node, return an updated
     21 // statementList that has fall-through removed.
     22 TIntermBlock *RemoveSwitchFallThrough(TIntermBlock *statementList,
     23                                      PerformanceDiagnostics *perfDiagnostics);
     24 
     25 }  // namespace sh
     26 
     27 #endif  // COMPILER_TRANSLATOR_TREEOPS_D3D_REMOVESWITCHFALLTHROUGH_H_