diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2017-12-02 13:06:27 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2017-12-02 13:06:27 +0000 |
commit | d4700b2ad1351512fc87251dc259a06cb6b03ed5 (patch) | |
tree | 58b604a8b94697d0c358cd74e9d67513bcadd1ed /llvm/tools/llvm-readobj/ELFDumper.cpp | |
parent | 299a54c5b9701f071ee68fed8e3663e8da4be4fb (diff) | |
download | bcm5719-llvm-d4700b2ad1351512fc87251dc259a06cb6b03ed5.tar.gz bcm5719-llvm-d4700b2ad1351512fc87251dc259a06cb6b03ed5.zip |
[llvm-readobj] Delete unused method argument. NFC
llvm-svn: 319615
Diffstat (limited to 'llvm/tools/llvm-readobj/ELFDumper.cpp')
-rw-r--r-- | llvm/tools/llvm-readobj/ELFDumper.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp index cd107ec91ba..df01e265798 100644 --- a/llvm/tools/llvm-readobj/ELFDumper.cpp +++ b/llvm/tools/llvm-readobj/ELFDumper.cpp @@ -1930,7 +1930,7 @@ private: const GOTEntry *It); void printGlobalGotEntry(uint64_t GotAddr, const GOTEntry *BeginIt, const GOTEntry *It, const Elf_Sym *Sym, - StringRef StrTable, bool IsDynamic); + StringRef StrTable); void printPLTEntry(uint64_t PLTAddr, const GOTEntry *BeginIt, const GOTEntry *It, StringRef Purpose); void printPLTEntry(uint64_t PLTAddr, const GOTEntry *BeginIt, @@ -2044,8 +2044,8 @@ template <class ELFT> void MipsGOTParser<ELFT>::parseGOT() { const Elf_Sym *GotDynSym = DynSymBegin + *DtGotSym; for (; It != GotGlobalEnd; ++It) { DictScope D(W, "Entry"); - printGlobalGotEntry(GOTShdr->sh_addr, GotBegin, It, GotDynSym++, StrTable, - true); + printGlobalGotEntry(GOTShdr->sh_addr, GotBegin, It, GotDynSym++, + StrTable); } } @@ -2137,9 +2137,11 @@ void MipsGOTParser<ELFT>::printGotEntry(uint64_t GotAddr, } template <class ELFT> -void MipsGOTParser<ELFT>::printGlobalGotEntry( - uint64_t GotAddr, const GOTEntry *BeginIt, const GOTEntry *It, - const Elf_Sym *Sym, StringRef StrTable, bool IsDynamic) { +void MipsGOTParser<ELFT>::printGlobalGotEntry(uint64_t GotAddr, + const GOTEntry *BeginIt, + const GOTEntry *It, + const Elf_Sym *Sym, + StringRef StrTable) { printGotEntry(GotAddr, BeginIt, It); W.printHex("Value", Sym->st_value); @@ -2151,8 +2153,7 @@ void MipsGOTParser<ELFT>::printGlobalGotEntry( Dumper->getShndxTable(), SectionName, SectionIndex); W.printHex("Section", SectionName, SectionIndex); - std::string FullSymbolName = - Dumper->getFullSymbolName(Sym, StrTable, IsDynamic); + std::string FullSymbolName = Dumper->getFullSymbolName(Sym, StrTable, true); W.printNumber("Name", FullSymbolName, Sym->st_name); } |