From: Roman Divacky Date: Wed, 3 Dec 2014 18:39:44 +0000 (+0000) Subject: Change the name to be in style. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=788af07d5d70e67b9cfad383a0c46008563b1000;p=oota-llvm.git Change the name to be in style. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223255 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCSubtargetInfo.h b/include/llvm/MC/MCSubtargetInfo.h index dba957018bf..3f38bd59a57 100644 --- a/include/llvm/MC/MCSubtargetInfo.h +++ b/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/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 6e7a27ae03e..1e661d82dad 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/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; }