[llvm] a9d51f0 - [MCParser] De-capitalize ParseDirectiveCGProfile. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 22:14:00 PDT 2024


Author: Fangrui Song
Date: 2024-10-24T22:13:55-07:00
New Revision: a9d51f0e18ec840bdb361daca48b4ef00e2ba8ac

URL: https://github.com/llvm/llvm-project/commit/a9d51f0e18ec840bdb361daca48b4ef00e2ba8ac
DIFF: https://github.com/llvm/llvm-project/commit/a9d51f0e18ec840bdb361daca48b4ef00e2ba8ac.diff

LOG: [MCParser] De-capitalize ParseDirectiveCGProfile. NFC

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCParser/MCAsmParserExtension.h
    llvm/lib/MC/MCParser/COFFAsmParser.cpp
    llvm/lib/MC/MCParser/DarwinAsmParser.cpp
    llvm/lib/MC/MCParser/ELFAsmParser.cpp
    llvm/lib/MC/MCParser/MCAsmParserExtension.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCParser/MCAsmParserExtension.h b/llvm/include/llvm/MC/MCParser/MCAsmParserExtension.h
index e596a7195447dd..f1c1b2641ab155 100644
--- a/llvm/include/llvm/MC/MCParser/MCAsmParserExtension.h
+++ b/llvm/include/llvm/MC/MCParser/MCAsmParserExtension.h
@@ -98,7 +98,7 @@ class MCAsmParserExtension {
     return getParser().parseOptionalToken(T);
   }
 
-  bool ParseDirectiveCGProfile(StringRef, SMLoc);
+  bool parseDirectiveCGProfile(StringRef, SMLoc);
 
   bool check(bool P, const Twine &Msg) {
     return getParser().check(P, Msg);

diff  --git a/llvm/lib/MC/MCParser/COFFAsmParser.cpp b/llvm/lib/MC/MCParser/COFFAsmParser.cpp
index 53c0270255e89e..f97da2d479b40f 100644
--- a/llvm/lib/MC/MCParser/COFFAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/COFFAsmParser.cpp
@@ -301,7 +301,7 @@ bool COFFAsmParser::parseDirectiveSymbolAttribute(StringRef Directive, SMLoc) {
 }
 
 bool COFFAsmParser::parseDirectiveCGProfile(StringRef S, SMLoc Loc) {
-  return MCAsmParserExtension::ParseDirectiveCGProfile(S, Loc);
+  return MCAsmParserExtension::parseDirectiveCGProfile(S, Loc);
 }
 
 bool COFFAsmParser::parseSectionSwitch(StringRef Section,

diff  --git a/llvm/lib/MC/MCParser/DarwinAsmParser.cpp b/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
index a97b72997ae39d..5dc9cb64c46ae6 100644
--- a/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
@@ -1205,7 +1205,7 @@ bool DarwinAsmParser::parseBuildVersion(StringRef Directive, SMLoc Loc) {
 /// parseDirectiveCGProfile
 ///   ::= .cg_profile from, to, count
 bool DarwinAsmParser::parseDirectiveCGProfile(StringRef S, SMLoc Loc) {
-  return MCAsmParserExtension::ParseDirectiveCGProfile(S, Loc);
+  return MCAsmParserExtension::parseDirectiveCGProfile(S, Loc);
 }
 
 namespace llvm {

diff  --git a/llvm/lib/MC/MCParser/ELFAsmParser.cpp b/llvm/lib/MC/MCParser/ELFAsmParser.cpp
index 28672a19aa701b..9cdc2aafe3d224 100644
--- a/llvm/lib/MC/MCParser/ELFAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/ELFAsmParser.cpp
@@ -925,7 +925,7 @@ bool ELFAsmParser::parseDirectiveSubsection(StringRef, SMLoc) {
 }
 
 bool ELFAsmParser::parseDirectiveCGProfile(StringRef S, SMLoc Loc) {
-  return MCAsmParserExtension::ParseDirectiveCGProfile(S, Loc);
+  return MCAsmParserExtension::parseDirectiveCGProfile(S, Loc);
 }
 
 namespace llvm {

diff  --git a/llvm/lib/MC/MCParser/MCAsmParserExtension.cpp b/llvm/lib/MC/MCParser/MCAsmParserExtension.cpp
index f5a10ce9805bad..444ce395a4deab 100644
--- a/llvm/lib/MC/MCParser/MCAsmParserExtension.cpp
+++ b/llvm/lib/MC/MCParser/MCAsmParserExtension.cpp
@@ -22,9 +22,9 @@ void MCAsmParserExtension::Initialize(MCAsmParser &Parser) {
   this->Parser = &Parser;
 }
 
-/// ParseDirectiveCGProfile
+/// parseDirectiveCGProfile
 ///  ::= .cg_profile identifier, identifier, <number>
-bool MCAsmParserExtension::ParseDirectiveCGProfile(StringRef, SMLoc) {
+bool MCAsmParserExtension::parseDirectiveCGProfile(StringRef, SMLoc) {
   StringRef From;
   SMLoc FromLoc = getLexer().getLoc();
   if (getParser().parseIdentifier(From))


        


More information about the llvm-commits mailing list