rename some helpers, have them return the idx of the field being accessed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40764 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Expr.cpp b/AST/Expr.cpp
index cba95ca..2df7612 100644
--- a/AST/Expr.cpp
+++ b/AST/Expr.cpp
@@ -589,10 +589,10 @@
// derive the component type, no need to waste space.
const char *compStr = Accessor.getName();
- if (OCUVectorType::isPointAccessor(*compStr)) return Point;
- if (OCUVectorType::isColorAccessor(*compStr)) return Color;
+ if (OCUVectorType::getPointAccessorIdx(*compStr) != -1) return Point;
+ if (OCUVectorType::getColorAccessorIdx(*compStr) != -1) return Color;
- assert(OCUVectorType::isTextureAccessor(*compStr) &&
+ assert(OCUVectorType::getTextureAccessorIdx(*compStr) != -1 &&
"getComponentType(): Illegal accessor");
return Texture;
}