diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-07-08 17:41:53 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-07-08 17:41:53 +0000 |
commit | e086afa66789f3072da5651bc09a6f1963a55686 (patch) | |
tree | 3a13581588f00b96ff3c317875d0e534411bcd15 /llvm | |
parent | ad987455619bac39bdc7acd51ab108d42c63da33 (diff) | |
download | bcm5719-llvm-e086afa66789f3072da5651bc09a6f1963a55686.tar.gz bcm5719-llvm-e086afa66789f3072da5651bc09a6f1963a55686.zip |
MC: Make MCSubtargetInfo::isCPUStringValid() const, NFC
This method doesn't modify any members, so it should be const.
llvm-svn: 241694
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/MC/MCSubtargetInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCSubtargetInfo.h b/llvm/include/llvm/MC/MCSubtargetInfo.h index b8ad02fbe69..0dbb93de56c 100644 --- a/llvm/include/llvm/MC/MCSubtargetInfo.h +++ b/llvm/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; |