This method doesn't modify any members, so it should be const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241694
91177308-0d34-0410-b5e6-
96231b3b80d8
void initInstrItins(InstrItineraryData &InstrItins) const;
/// Check whether the CPU string is valid.
void initInstrItins(InstrItineraryData &InstrItins) const;
/// Check whether the CPU string is valid.
- bool isCPUStringValid(StringRef CPU) {
+ bool isCPUStringValid(StringRef CPU) const {
auto Found = std::find_if(ProcDesc.begin(), ProcDesc.end(),
[=](const SubtargetFeatureKV &KV) {
return CPU == KV.Key;
auto Found = std::find_if(ProcDesc.begin(), ProcDesc.end(),
[=](const SubtargetFeatureKV &KV) {
return CPU == KV.Key;