r244342 - Move the cpu validating virtual method down to the feature routines

Eric Christopher via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 11:31:25 PDT 2015


Author: echristo
Date: Fri Aug  7 13:31:25 2015
New Revision: 244342

URL: http://llvm.org/viewvc/llvm-project?rev=244342&view=rev
Log:
Move the cpu validating virtual method down to the feature routines
where it belongs.

Modified:
    cfe/trunk/include/clang/Basic/TargetInfo.h

Modified: cfe/trunk/include/clang/Basic/TargetInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TargetInfo.h?rev=244342&r1=244341&r2=244342&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/TargetInfo.h (original)
+++ cfe/trunk/include/clang/Basic/TargetInfo.h Fri Aug  7 13:31:25 2015
@@ -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 {




More information about the cfe-commits mailing list