Renamed UnfoldSelect to UnfoldShortCircuit.
TRAC #11866
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1062 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index 33e3d18..6001e31 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -9,7 +9,7 @@
#include "common/angleutils.h"
#include "compiler/debug.h"
#include "compiler/InfoSink.h"
-#include "compiler/UnfoldSelect.h"
+#include "compiler/UnfoldShortCircuit.h"
#include "compiler/SearchSymbol.h"
#include <stdio.h>
@@ -27,7 +27,7 @@
OutputHLSL::OutputHLSL(TParseContext &context) : TIntermTraverser(true, true, true), mContext(context)
{
- mUnfoldSelect = new UnfoldSelect(context, this);
+ mUnfoldShortCircuit = new UnfoldShortCircuit(context, this);
mInsideFunction = false;
mUsesTexture2D = false;
@@ -80,7 +80,7 @@
OutputHLSL::~OutputHLSL()
{
- delete mUnfoldSelect;
+ delete mUnfoldShortCircuit;
}
void OutputHLSL::output()
@@ -1056,14 +1056,14 @@
case EOpMatrixTimesVector: outputTriplet(visit, "mul(transpose(", "), ", ")"); break;
case EOpMatrixTimesMatrix: outputTriplet(visit, "transpose(mul(transpose(", "), transpose(", ")))"); break;
case EOpLogicalOr:
- out << "s" << mUnfoldSelect->getNextTemporaryIndex();
+ out << "s" << mUnfoldShortCircuit->getNextTemporaryIndex();
return false;
case EOpLogicalXor:
mUsesXor = true;
outputTriplet(visit, "xor(", ", ", ")");
break;
case EOpLogicalAnd:
- out << "s" << mUnfoldSelect->getNextTemporaryIndex();
+ out << "s" << mUnfoldShortCircuit->getNextTemporaryIndex();
return false;
default: UNREACHABLE();
}
@@ -1583,11 +1583,11 @@
if (node->usesTernaryOperator())
{
- out << "s" << mUnfoldSelect->getNextTemporaryIndex();
+ out << "s" << mUnfoldShortCircuit->getNextTemporaryIndex();
}
else // if/else statement
{
- mUnfoldSelect->traverse(node->getCondition());
+ mUnfoldShortCircuit->traverse(node->getCondition());
out << "if(";
@@ -1736,7 +1736,7 @@
{
if (isSingleStatement(node))
{
- mUnfoldSelect->traverse(node);
+ mUnfoldShortCircuit->traverse(node);
}
node->traverse(this);