Some rationalization of TIntermediate (to own it's own tree root) and TParseHelper for better encapsulation. Needed by some upcoming intra-stage link validation.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22914 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-09-03 22:57:27 +00:00
parent 807b8e3b82
commit 2f1eb37d82
8 changed files with 107 additions and 82 deletions

View file

@ -35,6 +35,7 @@
//
#include "localintermediate.h"
#include "../Include/InfoSink.h"
namespace glslang {
@ -567,9 +568,9 @@ bool OutputSwitch(bool /* preVisit */, TIntermSwitch* node, TIntermTraverser* it
// Individual functions can be initialized to 0 to skip processing of that
// type of node. It's children will still be processed.
//
void TIntermediate::outputTree(TIntermNode* root, TInfoSink& infoSink)
void TIntermediate::outputTree(TInfoSink& infoSink)
{
if (root == 0)
if (treeRoot == 0)
return;
TOutputTraverser it(infoSink);
@ -584,7 +585,7 @@ void TIntermediate::outputTree(TIntermNode* root, TInfoSink& infoSink)
it.visitBranch = OutputBranch;
it.visitSwitch = OutputSwitch;
root->traverse(&it);
treeRoot->traverse(&it);
}
} // end namespace glslang