]> granicus.if.org Git - clang/commitdiff
Move the cpu validating virtual method down to the feature routines
authorEric Christopher <echristo@gmail.com>
Fri, 7 Aug 2015 18:31:25 +0000 (18:31 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 7 Aug 2015 18:31:25 +0000 (18:31 +0000)
where it belongs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244342 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/TargetInfo.h

index 0afd6b47dba4e5e380a69cf291845ae384ddf6a9..6d09538b5c28940256e21227c8f08256269930dd 100644 (file)
@@ -636,9 +636,6 @@ public:
     }
   };
 
-  // Validate the contents of the __builtin_cpu_supports(const char*) argument.
-  virtual bool validateCpuSupports(StringRef Name) const { return false; }
-
   // validateOutputConstraint, validateInputConstraint - Checks that
   // a constraint is valid and provides information about it.
   // FIXME: These should return a real error instead of just true/false.
@@ -817,6 +814,10 @@ public:
   virtual bool hasFeature(StringRef Feature) const {
     return false;
   }
+
+  // \brief Validate the contents of the __builtin_cpu_supports(const char*)
+  // argument.
+  virtual bool validateCpuSupports(StringRef Name) const { return false; }
   
   // \brief Returns maximal number of args passed in registers.
   unsigned getRegParmMax() const {