Move the cpu validating virtual method down to the feature routines

where it belongs.

llvm-svn: 244342
This commit is contained in:
Eric Christopher 2015-08-07 18:31:25 +00:00
parent 3815c16bf8
commit e173314d39
1 changed files with 4 additions and 3 deletions

View 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 {