summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-08-07 18:31:25 +0000
committerEric Christopher <echristo@gmail.com>2015-08-07 18:31:25 +0000
commite173314d39bfb571cde4a5ae497bed7d2285e660 (patch)
treef1b06044631e9ce9a6390316fbbb034b2a190bcb
parent3815c16bf86c44afa3bf4bd255b730330c218c33 (diff)
downloadbcm5719-llvm-e173314d39bfb571cde4a5ae497bed7d2285e660.tar.gz
bcm5719-llvm-e173314d39bfb571cde4a5ae497bed7d2285e660.zip
Move the cpu validating virtual method down to the feature routines
where it belongs. llvm-svn: 244342
-rw-r--r--clang/include/clang/Basic/TargetInfo.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h
index 0afd6b47dba..6d09538b5c2 100644
--- a/clang/include/clang/Basic/TargetInfo.h
+++ b/clang/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 {
OpenPOWER on IntegriCloud