From a05ea0f3e37abe86fe62080063f562a3d9d9b0a2 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 5 Sep 2012 01:15:43 +0000 Subject: [PATCH] Fix function name per coding standard. llvm-svn: 163187 --- llvm/include/llvm/MC/MCTargetAsmParser.h | 2 +- llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 4 ++-- llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp | 4 ++-- llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 8 ++++---- llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 4 ++-- llvm/utils/TableGen/AsmMatcherEmitter.cpp | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/llvm/include/llvm/MC/MCTargetAsmParser.h b/llvm/include/llvm/MC/MCTargetAsmParser.h index 77b3e84254e3..709c2d245cc3 100644 --- a/llvm/include/llvm/MC/MCTargetAsmParser.h +++ b/llvm/include/llvm/MC/MCTargetAsmParser.h @@ -111,7 +111,7 @@ public: return Match_Success; } - virtual unsigned GetMCInstOperandNum(unsigned Kind, MCInst &Inst, + virtual unsigned getMCInstOperandNum(unsigned Kind, MCInst &Inst, const SmallVectorImpl &Operands, unsigned OperandNum, unsigned &NumMCOperands) = 0; diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 51ba3c3b37c2..e1e2f6ea7366 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -263,10 +263,10 @@ public: SmallVectorImpl &Operands, MCStreamer &Out); - unsigned GetMCInstOperandNum(unsigned Kind, MCInst &Inst, + unsigned getMCInstOperandNum(unsigned Kind, MCInst &Inst, const SmallVectorImpl &Operands, unsigned OperandNum, unsigned &NumMCOperands) { - return GetMCInstOperandNumImpl(Kind, Inst, Operands, OperandNum, NumMCOperands); + return getMCInstOperandNumImpl(Kind, Inst, Operands, OperandNum, NumMCOperands); } }; } // end anonymous namespace diff --git a/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp b/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp index 6a63f17c6aed..40594030e574 100644 --- a/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp +++ b/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp @@ -56,10 +56,10 @@ class MBlazeAsmParser : public MCTargetAsmParser { /// } - unsigned GetMCInstOperandNum(unsigned Kind, MCInst &Inst, + unsigned getMCInstOperandNum(unsigned Kind, MCInst &Inst, const SmallVectorImpl &Operands, unsigned OperandNum, unsigned &NumMCOperands) { - return GetMCInstOperandNumImpl(Kind, Inst, Operands, OperandNum, + return getMCInstOperandNumImpl(Kind, Inst, Operands, OperandNum, NumMCOperands); } diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index c33c4d2ccd76..29a7ac825f17 100644 --- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -38,7 +38,7 @@ class MipsAsmParser : public MCTargetAsmParser { OperandMatchResultTy parseMemOperand(SmallVectorImpl&); - unsigned GetMCInstOperandNum(unsigned Kind, MCInst &Inst, + unsigned getMCInstOperandNum(unsigned Kind, MCInst &Inst, const SmallVectorImpl &Operands, unsigned OperandNum, unsigned &NumMCOperands); @@ -102,12 +102,12 @@ public: } unsigned MipsAsmParser:: -GetMCInstOperandNum(unsigned Kind, MCInst &Inst, +getMCInstOperandNum(unsigned Kind, MCInst &Inst, const SmallVectorImpl &Operands, unsigned OperandNum, unsigned &NumMCOperands) { - assert (0 && "GetMCInstOperandNum() not supported by the Mips target."); + assert (0 && "getMCInstOperandNum() not supported by the Mips target."); // The Mips backend doesn't currently include the matcher implementation, so - // the GetMCInstOperandNumImpl() is undefined. This is a temporary + // the getMCInstOperandNumImpl() is undefined. This is a temporary // work around. NumMCOperands = 0; return 0; diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp index baf45893f1c7..8a7d6f0c7534 100644 --- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -73,10 +73,10 @@ private: unsigned &OrigErrorInfo, bool matchingInlineAsm = false); - unsigned GetMCInstOperandNum(unsigned Kind, MCInst &Inst, + unsigned getMCInstOperandNum(unsigned Kind, MCInst &Inst, const SmallVectorImpl &Operands, unsigned OperandNum, unsigned &NumMCOperands) { - return GetMCInstOperandNumImpl(Kind, Inst, Operands, OperandNum, + return getMCInstOperandNumImpl(Kind, Inst, Operands, OperandNum, NumMCOperands); } diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index 3fac23ef2869..78eb64189933 100644 --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp @@ -1701,7 +1701,7 @@ static void emitConvertToMCInst(CodeGenTarget &Target, StringRef ClassName, raw_string_ostream OpOS(OperandFnBody); // Start the operand number lookup function. OpOS << "unsigned " << Target.getName() << ClassName << "::\n" - << "GetMCInstOperandNumImpl(unsigned Kind, MCInst &Inst,\n" + << "getMCInstOperandNumImpl(unsigned Kind, MCInst &Inst,\n" << " const SmallVectorImpl " << "&Operands,\n unsigned OperandNum, unsigned " << "&NumMCOperands) {\n" @@ -1722,7 +1722,7 @@ static void emitConvertToMCInst(CodeGenTarget &Target, StringRef ClassName, << " break;\n" << " case CVT_Tied:\n" << " // FIXME: Tied operand calculation not supported.\n" - << " assert (0 && \"GetMCInstOperandNumImpl() doesn't support tied operands, yet!\");\n" + << " assert (0 && \"getMCInstOperandNumImpl() doesn't support tied operands, yet!\");\n" << " break;\n"; // Pre-populate the operand conversion kinds with the standard always @@ -2599,7 +2599,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) { << "unsigned Opcode,\n" << " const SmallVectorImpl " << "&Operands);\n"; - OS << " unsigned GetMCInstOperandNumImpl(unsigned Kind, MCInst &Inst,\n " + OS << " unsigned getMCInstOperandNumImpl(unsigned Kind, MCInst &Inst,\n " << " const " << "SmallVectorImpl &Operands,\n " << " unsigned OperandNum, unsigned &NumMCOperands);\n";