[llvm] r211152 - [llvm-readobj] Fix member functions name style.
Simon Atanasyan
simon at atanasyan.com
Wed Jun 18 02:24:01 PDT 2014
Author: atanasyan
Date: Wed Jun 18 04:24:01 2014
New Revision: 211152
URL: http://llvm.org/viewvc/llvm-project?rev=211152&view=rev
Log:
[llvm-readobj] Fix member functions name style.
Modified:
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=211152&r1=211151&r2=211152&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Wed Jun 18 04:24:01 2014
@@ -1040,7 +1040,7 @@ public:
MipsGOTParser(const ObjectFile *Obj, StreamWriter &W) : Obj(Obj), W(W) {}
- void ParseGOT(const Elf_Shdr &GOTShdr);
+ void parseGOT(const Elf_Shdr &GOTShdr);
private:
typedef typename ObjectFile::Elf_Sym_Iter Elf_Sym_Iter;
@@ -1051,8 +1051,8 @@ private:
const ObjectFile *Obj;
StreamWriter &W;
- std::size_t GetGOTTotal(ArrayRef<uint8_t> GOT) const;
- GOTIter MakeGOTIter(ArrayRef<uint8_t> GOT, std::size_t EntryNum);
+ std::size_t getGOTTotal(ArrayRef<uint8_t> GOT) const;
+ GOTIter makeGOTIter(ArrayRef<uint8_t> GOT, std::size_t EntryNum);
bool getGOTTags(uint64_t &LocalGotNum, uint64_t &GotSym);
void printGotEntry(uint64_t GotAddr, GOTIter BeginIt, GOTIter It);
@@ -1062,7 +1062,7 @@ private:
}
template <class ELFT>
-void MipsGOTParser<ELFT>::ParseGOT(const Elf_Shdr &GOTShdr) {
+void MipsGOTParser<ELFT>::parseGOT(const Elf_Shdr &GOTShdr) {
// See "Global Offset Table" in Chapter 5 in the following document
// for detailed GOT description.
// ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf
@@ -1078,7 +1078,7 @@ void MipsGOTParser<ELFT>::ParseGOT(const
if (!getGOTTags(DtLocalGotNum, DtGotSym))
return;
- if (DtLocalGotNum > GetGOTTotal(*GOT)) {
+ if (DtLocalGotNum > getGOTTotal(*GOT)) {
W.startLine() << "MIPS_LOCAL_GOTNO exceeds a number of GOT entries.\n";
return;
}
@@ -1094,13 +1094,13 @@ void MipsGOTParser<ELFT>::ParseGOT(const
std::size_t GlobalGotNum = DynSymTotal - DtGotSym;
- if (DtLocalGotNum + GlobalGotNum > GetGOTTotal(*GOT)) {
+ if (DtLocalGotNum + GlobalGotNum > getGOTTotal(*GOT)) {
W.startLine() << "Number of global GOT entries exceeds the size of GOT.\n";
return;
}
- GOTIter GotBegin = MakeGOTIter(*GOT, 0);
- GOTIter GotLocalEnd = MakeGOTIter(*GOT, DtLocalGotNum);
+ GOTIter GotBegin = makeGOTIter(*GOT, 0);
+ GOTIter GotLocalEnd = makeGOTIter(*GOT, DtLocalGotNum);
GOTIter It = GotBegin;
DictScope GS(W, "Primary GOT");
@@ -1131,7 +1131,7 @@ void MipsGOTParser<ELFT>::ParseGOT(const
{
ListScope GS(W, "Global entries");
- GOTIter GotGlobalEnd = MakeGOTIter(*GOT, DtLocalGotNum + GlobalGotNum);
+ GOTIter GotGlobalEnd = makeGOTIter(*GOT, DtLocalGotNum + GlobalGotNum);
Elf_Sym_Iter GotDynSym = DynSymBegin + DtGotSym;
for (; It != GotGlobalEnd; ++It) {
DictScope D(W, "Entry");
@@ -1139,18 +1139,18 @@ void MipsGOTParser<ELFT>::ParseGOT(const
}
}
- std::size_t SpecGotNum = GetGOTTotal(*GOT) - DtLocalGotNum - GlobalGotNum;
+ std::size_t SpecGotNum = getGOTTotal(*GOT) - DtLocalGotNum - GlobalGotNum;
W.printNumber("Number of TLS and multi-GOT entries", uint64_t(SpecGotNum));
}
template <class ELFT>
-std::size_t MipsGOTParser<ELFT>::GetGOTTotal(ArrayRef<uint8_t> GOT) const {
+std::size_t MipsGOTParser<ELFT>::getGOTTotal(ArrayRef<uint8_t> GOT) const {
return GOT.size() / sizeof(GOTEntry);
}
template <class ELFT>
typename MipsGOTParser<ELFT>::GOTIter
-MipsGOTParser<ELFT>::MakeGOTIter(ArrayRef<uint8_t> GOT, std::size_t EntryNum) {
+MipsGOTParser<ELFT>::makeGOTIter(ArrayRef<uint8_t> GOT, std::size_t EntryNum) {
const char *Data = reinterpret_cast<const char *>(GOT.data());
return GOTIter(sizeof(GOTEntry), Data + EntryNum * sizeof(GOTEntry));
}
@@ -1236,5 +1236,5 @@ template <class ELFT> void ELFDumper<ELF
return;
}
- MipsGOTParser<ELFT>(Obj, W).ParseGOT(*GotShdr);
+ MipsGOTParser<ELFT>(Obj, W).parseGOT(*GotShdr);
}
More information about the llvm-commits
mailing list