summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/compiler/translator/SimplifyArrayAssignment.h
blob: 247eb88d72aad7b6bb62f71d2a0f4a53afb621c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// Copyright (c) 2002-2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// SimplifyArrayAssignment is an AST traverser to replace statements where
// the return value of array assignment is used with statements where
// the return value of array assignment is not used.
//

#ifndef COMPILER_TRANSLATOR_SIMPLIFYARRAYASSIGNMENT_H_
#define COMPILER_TRANSLATOR_SIMPLIFYARRAYASSIGNMENT_H_

#include "common/angleutils.h"
#include "compiler/translator/IntermNode.h"

class SimplifyArrayAssignment : public TIntermTraverser
{
  public:
    SimplifyArrayAssignment() { }

    virtual bool visitBinary(Visit visit, TIntermBinary *node);
};

#endif  // COMPILER_TRANSLATOR_SIMPLIFYARRAYASSIGNMENT_H_