From 9c2664d3a4ff13745a7e493df9706e7d733e8cbe Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Wed, 8 Jul 2015 17:41:53 +0000 Subject: 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 --- include/llvm/MC/MCSubtargetInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/MC/MCSubtargetInfo.h b/include/llvm/MC/MCSubtargetInfo.h index b8ad02fbe69..0dbb93de56c 100644 --- a/include/llvm/MC/MCSubtargetInfo.h +++ b/include/llvm/MC/MCSubtargetInfo.h @@ -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; -- cgit v1.2.3