summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputFiles.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-11-08 15:51:00 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-11-08 15:51:00 +0000
commit73c3a36b9f5036f4e497035193765c465d1b9ca2 (patch)
tree28b791661d0ad13bf94f73661bd2ede2e7bbb74b /lld/ELF/InputFiles.cpp
parentbdb3c3815761d3a614f3925950d2eaedab5c9afc (diff)
downloadbcm5719-llvm-73c3a36b9f5036f4e497035193765c465d1b9ca2.tar.gz
bcm5719-llvm-73c3a36b9f5036f4e497035193765c465d1b9ca2.zip
Remove dead arguments. NFC.
llvm-svn: 286242
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
-rw-r--r--lld/ELF/InputFiles.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 3654403f910..bedc279f4df 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -171,9 +171,8 @@ template <class ELFT> uint32_t elf::ObjectFile<ELFT>::getMipsGp0() const {
template <class ELFT>
void elf::ObjectFile<ELFT>::parse(DenseSet<CachedHashStringRef> &ComdatGroups) {
// Read section and symbol tables.
- ArrayRef<Elf_Shdr> ObjSections = check(this->getObj().sections());
- initializeSections(ComdatGroups, ObjSections);
- initializeSymbols(ObjSections);
+ initializeSections(ComdatGroups);
+ initializeSymbols();
}
// Sections with SHT_GROUP and comdat bits define comdat section groups.
@@ -257,8 +256,8 @@ bool elf::ObjectFile<ELFT>::shouldMerge(const Elf_Shdr &Sec) {
template <class ELFT>
void elf::ObjectFile<ELFT>::initializeSections(
- DenseSet<CachedHashStringRef> &ComdatGroups,
- ArrayRef<Elf_Shdr> ObjSections) {
+ DenseSet<CachedHashStringRef> &ComdatGroups) {
+ ArrayRef<Elf_Shdr> ObjSections = check(this->getObj().sections());
const ELFFile<ELFT> &Obj = this->getObj();
uint64_t Size = ObjSections.size();
Sections.resize(Size);
@@ -422,8 +421,7 @@ elf::ObjectFile<ELFT>::createInputSection(const Elf_Shdr &Sec,
return make<InputSection<ELFT>>(this, &Sec, Name);
}
-template <class ELFT>
-void elf::ObjectFile<ELFT>::initializeSymbols(ArrayRef<Elf_Shdr> Sections) {
+template <class ELFT> void elf::ObjectFile<ELFT>::initializeSymbols() {
SymbolBodies.reserve(this->Symbols.size());
for (const Elf_Sym &Sym : this->Symbols)
SymbolBodies.push_back(createSymbolBody(&Sym));
OpenPOWER on IntegriCloud