Hash :
cf180fcc
Author :
Date :
2018-01-04T16:25:40
Keep TIntermSymbol data consistent in DeferGlobalInitializers BUG=angleproject:2267 TEST=angle_unittests Change-Id: I25bd8baded9c13e75555578e4b61b99a56e0c702 Reviewed-on: https://chromium-review.googlesource.com/850974 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
//
// Copyright (c) 2018 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.
//
// ReplaceVariable.h: Replace all references to a specific variable in the AST with references to
// another variable.
#ifndef COMPILER_TRANSLATOR_REPLACEVARIABLE_H_
#define COMPILER_TRANSLATOR_REPLACEVARIABLE_H_
namespace sh
{
class TIntermBlock;
class TVariable;
void ReplaceVariable(TIntermBlock *root,
const TVariable *toBeReplaced,
const TVariable *replacement);
} // namespace sh
#endif // COMPILER_TRANSLATOR_REPLACEVARIABLE_H_