From fdf0560997508676ea4a5ece2f1b85efca31cf54 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Wed, 3 Dec 2014 18:39:44 +0000 Subject: [PATCH] Change the name to be in style. llvm-svn: 223255 --- llvm/include/llvm/MC/MCSubtargetInfo.h | 2 +- llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/MC/MCSubtargetInfo.h b/llvm/include/llvm/MC/MCSubtargetInfo.h index dba9570..3f38bd5 100644 --- a/llvm/include/llvm/MC/MCSubtargetInfo.h +++ b/llvm/include/llvm/MC/MCSubtargetInfo.h @@ -138,7 +138,7 @@ public: void initInstrItins(InstrItineraryData &InstrItins) const; /// Check whether the CPU string is valid. - bool CPUStringIsValid(StringRef CPU) { + bool isCPUStringValid(StringRef CPU) { auto Found = std::find_if(ProcDesc.begin(), ProcDesc.end(), [=](const SubtargetFeatureKV &KV) { return CPU == KV.Key; diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 6e7a27a..1e661d8 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -9084,7 +9084,7 @@ bool ARMAsmParser::parseDirectiveCPU(SMLoc L) { StringRef CPU = getParser().parseStringToEndOfStatement().trim(); getTargetStreamer().emitTextAttribute(ARMBuildAttrs::CPU_name, CPU); - if (!STI.CPUStringIsValid(CPU)) { + if (!STI.isCPUStringValid(CPU)) { Error(L, "Unknown CPU name"); return false; } -- 2.7.4