mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-03 16:18:37 +00:00
MC: Make MCSubtargetInfo::isCPUStringValid() const, NFC
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
This commit is contained in:
parent
dfcac4b07a
commit
9c2664d3a4
@ -151,7 +151,7 @@ public:
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user