Commit 4d549932 by Olli Etuaho Committed by Commit Bot

Move ReplaceVariable to tree_util directory

This was overlooked earlier when most AST transform related utilities were moved to tree_util. BUG=angleproject:2402 TEST=angle_unittests Change-Id: I17d3716a434f80a9316156ca019ce49aada5c249 Reviewed-on: https://chromium-review.googlesource.com/975881Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
parent 822a84b1
...@@ -77,8 +77,6 @@ ...@@ -77,8 +77,6 @@
'compiler/translator/Pragma.h', 'compiler/translator/Pragma.h',
'compiler/translator/QualifierTypes.h', 'compiler/translator/QualifierTypes.h',
'compiler/translator/QualifierTypes.cpp', 'compiler/translator/QualifierTypes.cpp',
'compiler/translator/ReplaceVariable.cpp',
'compiler/translator/ReplaceVariable.h',
'compiler/translator/Severity.h', 'compiler/translator/Severity.h',
'compiler/translator/ShaderLang.cpp', 'compiler/translator/ShaderLang.cpp',
'compiler/translator/ShaderVars.cpp', 'compiler/translator/ShaderVars.cpp',
...@@ -189,6 +187,8 @@ ...@@ -189,6 +187,8 @@
'compiler/translator/tree_util/IntermTraverse.cpp', 'compiler/translator/tree_util/IntermTraverse.cpp',
'compiler/translator/tree_util/IntermTraverse.h', 'compiler/translator/tree_util/IntermTraverse.h',
'compiler/translator/tree_util/NodeSearch.h', 'compiler/translator/tree_util/NodeSearch.h',
'compiler/translator/tree_util/ReplaceVariable.cpp',
'compiler/translator/tree_util/ReplaceVariable.h',
'compiler/translator/tree_util/RunAtTheEndOfShader.cpp', 'compiler/translator/tree_util/RunAtTheEndOfShader.cpp',
'compiler/translator/tree_util/RunAtTheEndOfShader.h', 'compiler/translator/tree_util/RunAtTheEndOfShader.h',
'third_party/compiler/ArrayBoundsClamper.cpp', 'third_party/compiler/ArrayBoundsClamper.cpp',
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include "compiler/translator/tree_ops/DeclareAndInitBuiltinsForInstancedMultiview.h" #include "compiler/translator/tree_ops/DeclareAndInitBuiltinsForInstancedMultiview.h"
#include "compiler/translator/ReplaceVariable.h"
#include "compiler/translator/StaticType.h" #include "compiler/translator/StaticType.h"
#include "compiler/translator/SymbolTable.h" #include "compiler/translator/SymbolTable.h"
#include "compiler/translator/tree_ops/InitializeVariables.h" #include "compiler/translator/tree_ops/InitializeVariables.h"
...@@ -17,6 +16,7 @@ ...@@ -17,6 +16,7 @@
#include "compiler/translator/tree_util/FindMain.h" #include "compiler/translator/tree_util/FindMain.h"
#include "compiler/translator/tree_util/IntermNode_util.h" #include "compiler/translator/tree_util/IntermNode_util.h"
#include "compiler/translator/tree_util/IntermTraverse.h" #include "compiler/translator/tree_util/IntermTraverse.h"
#include "compiler/translator/tree_util/ReplaceVariable.h"
#include "compiler/translator/util.h" #include "compiler/translator/util.h"
namespace sh namespace sh
......
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
#include <vector> #include <vector>
#include "compiler/translator/IntermNode.h" #include "compiler/translator/IntermNode.h"
#include "compiler/translator/ReplaceVariable.h"
#include "compiler/translator/StaticType.h" #include "compiler/translator/StaticType.h"
#include "compiler/translator/SymbolTable.h" #include "compiler/translator/SymbolTable.h"
#include "compiler/translator/tree_ops/InitializeVariables.h" #include "compiler/translator/tree_ops/InitializeVariables.h"
#include "compiler/translator/tree_util/FindMain.h" #include "compiler/translator/tree_util/FindMain.h"
#include "compiler/translator/tree_util/IntermNode_util.h" #include "compiler/translator/tree_util/IntermNode_util.h"
#include "compiler/translator/tree_util/ReplaceVariable.h"
namespace sh namespace sh
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// ReplaceVariable.cpp: Replace all references to a specific variable in the AST with references to // ReplaceVariable.cpp: Replace all references to a specific variable in the AST with references to
// another variable. // another variable.
#include "compiler/translator/ReplaceVariable.h" #include "compiler/translator/tree_util/ReplaceVariable.h"
#include "compiler/translator/IntermNode.h" #include "compiler/translator/IntermNode.h"
#include "compiler/translator/tree_util/IntermTraverse.h" #include "compiler/translator/tree_util/IntermTraverse.h"
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
// ReplaceVariable.h: Replace all references to a specific variable in the AST with references to // ReplaceVariable.h: Replace all references to a specific variable in the AST with references to
// another variable. // another variable.
#ifndef COMPILER_TRANSLATOR_REPLACEVARIABLE_H_ #ifndef COMPILER_TRANSLATOR_TREEUTIL_REPLACEVARIABLE_H_
#define COMPILER_TRANSLATOR_REPLACEVARIABLE_H_ #define COMPILER_TRANSLATOR_TREEUTIL_REPLACEVARIABLE_H_
namespace sh namespace sh
{ {
...@@ -21,4 +21,4 @@ void ReplaceVariable(TIntermBlock *root, ...@@ -21,4 +21,4 @@ void ReplaceVariable(TIntermBlock *root,
} // namespace sh } // namespace sh
#endif // COMPILER_TRANSLATOR_REPLACEVARIABLE_H_ #endif // COMPILER_TRANSLATOR_TREEUTIL_REPLACEVARIABLE_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment