]> granicus.if.org Git - clang/commitdiff
mark some methods static, don't consider a vector to be an ocuvector
authorChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 22:19:39 +0000 (22:19 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 22:19:39 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40762 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index a2308c670bd20280bb70359738e2475833dd4200..29830c90a5df4f517d88d1e2aa91debe37115df6 100644 (file)
@@ -517,13 +517,13 @@ class OCUVectorType : public VectorType {
     VectorType(OCUVector, vecType, nElements, canonType) {} 
   friend class ASTContext;  // ASTContext creates these.
 public:
-  bool isPointAccessor(const char c) const {
+  static bool isPointAccessor(const char c) {
     return c == 'x' || c == 'y' || c == 'z' || c == 'w';
   }
-  bool isColorAccessor(const char c) const {
+  static bool isColorAccessor(const char c) {
     return c == 'r' || c == 'g' || c == 'b' || c == 'a';
   }
-  bool isTextureAccessor(const char c) const {
+  static bool isTextureAccessor(const char c) {
     return c == 's' || c == 't' || c == 'p' || c == 'q';
   };
   bool isAccessorWithinNumElements(const char c) const {
@@ -542,9 +542,6 @@ public:
   virtual void getAsStringInternal(std::string &InnerString) const;
 
   static bool classof(const Type *T) { 
-    return T->getTypeClass() == Vector || T->getTypeClass() == OCUVector; 
-  }
-  static bool classof(const VectorType *T) { 
     return T->getTypeClass() == OCUVector; 
   }
   static bool classof(const OCUVectorType *) { return true; }