Option rationalization and minor clean up.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22907 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
8700e9e6d1
commit
94a81fbd31
7 changed files with 74 additions and 66 deletions
|
|
@ -88,6 +88,20 @@ void RemoveConstantUnion(TIntermConstantUnion* node, TIntermTraverser*)
|
|||
delete node;
|
||||
}
|
||||
|
||||
bool RemoveLoop(bool /*preVisit*/ , TIntermLoop* node, TIntermTraverser*)
|
||||
{
|
||||
delete node;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RemoveBranch(bool /*preVisit*/ , TIntermBranch* node, TIntermTraverser*)
|
||||
{
|
||||
delete node;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// Entry point.
|
||||
//
|
||||
|
|
@ -95,12 +109,14 @@ void RemoveAllTreeNodes(TIntermNode* root)
|
|||
{
|
||||
TIntermTraverser it;
|
||||
|
||||
it.visitAggregate = RemoveAggregate;
|
||||
it.visitBinary = RemoveBinary;
|
||||
it.visitConstantUnion = RemoveConstantUnion;
|
||||
it.visitSelection = RemoveSelection;
|
||||
it.visitSymbol = RemoveSymbol;
|
||||
it.visitConstantUnion = RemoveConstantUnion;
|
||||
it.visitBinary = RemoveBinary;
|
||||
it.visitUnary = RemoveUnary;
|
||||
it.visitAggregate = RemoveAggregate;
|
||||
it.visitSelection = RemoveSelection;
|
||||
it.visitLoop = RemoveLoop;
|
||||
it.visitBranch = RemoveBranch;
|
||||
it.visitSwitch = RemoveSwitch;
|
||||
|
||||
it.preVisit = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue