Rename ConstantUnion to TConstantUnion.
This clarified that we're using the Pool allocator/deallocator for
this type.
BUG=angleproject:993
Change-Id: If8c95f6054d07291e7014be0d4e35766ba2e943b
Reviewed-on: https://chromium-review.googlesource.com/269131
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
diff --git a/src/compiler/translator/parseConst.cpp b/src/compiler/translator/parseConst.cpp
index 1897ed1..cb9dfa8 100644
--- a/src/compiler/translator/parseConst.cpp
+++ b/src/compiler/translator/parseConst.cpp
@@ -13,7 +13,7 @@
class TConstTraverser : public TIntermTraverser
{
public:
- TConstTraverser(ConstantUnion *cUnion, bool singleConstParam,
+ TConstTraverser(TConstantUnion *cUnion, bool singleConstParam,
TOperator constructType, TInfoSink &sink, TType &t)
: error(false),
mIndex(0),
@@ -42,7 +42,7 @@
bool visitBranch(Visit visit, TIntermBranch *);
size_t mIndex;
- ConstantUnion *mUnionArray;
+ TConstantUnion *mUnionArray;
TType mType;
TOperator mConstructorType;
bool mSingleConstantParam;
@@ -167,7 +167,7 @@
return;
}
- ConstantUnion *leftUnionArray = mUnionArray;
+ TConstantUnion *leftUnionArray = mUnionArray;
size_t instanceSize = mType.getObjectSize();
TBasicType basicType = mType.getBasicType();
@@ -177,7 +177,7 @@
if (!mSingleConstantParam)
{
size_t objectSize = node->getType().getObjectSize();
- ConstantUnion *rightUnionArray = node->getUnionArrayPointer();
+ TConstantUnion *rightUnionArray = node->getUnionArrayPointer();
for (size_t i=0; i < objectSize; i++)
{
if (mIndex >= instanceSize)
@@ -189,7 +189,7 @@
else
{
size_t totalSize = mIndex + mSize;
- ConstantUnion *rightUnionArray = node->getUnionArrayPointer();
+ TConstantUnion *rightUnionArray = node->getUnionArrayPointer();
if (!mIsDiagonalMatrixInit)
{
int count = 0;
@@ -247,7 +247,7 @@
// type of node. It's children will still be processed.
//
bool TIntermediate::parseConstTree(
- const TSourceLoc &line, TIntermNode *root, ConstantUnion *unionArray,
+ const TSourceLoc &line, TIntermNode *root, TConstantUnion *unionArray,
TOperator constructorType, TType t, bool singleConstantParam)
{
if (root == 0)