/// \return False on error.
virtual bool handleUserFeatures(llvm::StringMap<bool> &Features,
std::vector<std::string> &UserFeatures,
- DiagnosticsEngine &Diags) {
+ DiagnosticsEngine &Diags) const {
for (const auto &F : UserFeatures) {
const char *Name = F.c_str();
// Apply the feature via the target.
DiagnosticsEngine &Diags) override;
bool handleUserFeatures(llvm::StringMap<bool> &Features,
std::vector<std::string> &UserFeatures,
- DiagnosticsEngine &Diags) override;
+ DiagnosticsEngine &Diags) const override;
bool hasFeature(StringRef Feature) const override;
void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
bool Enabled) const override;
bool PPCTargetInfo::handleUserFeatures(llvm::StringMap<bool> &Features,
std::vector<std::string> &UserFeatures,
- DiagnosticsEngine &Diags) {
+ DiagnosticsEngine &Diags) const {
// Handle explicit options being passed to the compiler here: if we've
// explicitly turned off vsx and turned on power8-vector or direct-move then