From: Eric Christopher Date: Fri, 7 Aug 2015 18:31:25 +0000 (+0000) Subject: Move the cpu validating virtual method down to the feature routines X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9460494ff628b12f782c829692354f1cdd7ae225;p=clang Move the cpu validating virtual method down to the feature routines where it belongs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244342 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index 0afd6b47db..6d09538b5c 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -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 {