Added TIntermSelection::usesTernaryOperator() to distinguish between selection nodes using ternary operator and if-else. Used in both OutputGLSL and OutputHLSL.
Review URL: http://codereview.appspot.com/830042

git-svn-id: https://angleproject.googlecode.com/svn/trunk@82 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/intermediate.h b/src/compiler/intermediate.h
index 824e8bb..e73335e 100644
--- a/src/compiler/intermediate.h
+++ b/src/compiler/intermediate.h
@@ -417,6 +417,7 @@
 	TIntermSelection(TIntermTyped* cond, TIntermNode* trueB, TIntermNode* falseB, const TType& type) :
 		TIntermTyped(type), condition(cond), trueBlock(trueB), falseBlock(falseB) {}
 	virtual void traverse(TIntermTraverser*);
+        bool usesTernaryOperator() const { return getBasicType() != EbtVoid; }
 	virtual TIntermNode* getCondition() const { return condition; }
 	virtual TIntermNode* getTrueBlock() const { return trueBlock; }
 	virtual TIntermNode* getFalseBlock() const { return falseBlock; }