[ELF] createInputSection: remove unneeded argument. NFC

This commit is contained in:
Fangrui Song
2022-01-29 16:52:32 -08:00
parent ee7720acd6
commit d86435c230
2 changed files with 7 additions and 7 deletions

View File

@@ -603,7 +603,7 @@ void ObjFile<ELFT>::initializeSections(bool ignoreComdats,
if (keepGroup) {
if (config->relocatable)
this->sections[i] = createInputSection(
i, sec, check(obj.getSectionName(sec, shstrtab)), shstrtab);
i, sec, check(obj.getSectionName(sec, shstrtab)));
selectedGroups.push_back(entries);
continue;
}
@@ -627,8 +627,8 @@ void ObjFile<ELFT>::initializeSections(bool ignoreComdats,
case SHT_NULL:
break;
default:
this->sections[i] = createInputSection(
i, sec, check(obj.getSectionName(sec, shstrtab)), shstrtab);
this->sections[i] =
createInputSection(i, sec, check(obj.getSectionName(sec, shstrtab)));
}
}
@@ -891,9 +891,9 @@ InputSectionBase *ObjFile<ELFT>::getRelocTarget(uint32_t idx,
}
template <class ELFT>
InputSectionBase *
ObjFile<ELFT>::createInputSection(uint32_t idx, const Elf_Shdr &sec,
StringRef name, StringRef shstrtab) {
InputSectionBase *ObjFile<ELFT>::createInputSection(uint32_t idx,
const Elf_Shdr &sec,
StringRef name) {
if (sec.sh_type == SHT_ARM_ATTRIBUTES && config->emachine == EM_ARM) {
ARMAttributeParser attributes;
ArrayRef<uint8_t> contents = check(this->getObj().getSectionContents(sec));

View File

@@ -289,7 +289,7 @@ private:
InputSectionBase *getRelocTarget(uint32_t idx, const Elf_Shdr &sec,
uint32_t info);
InputSectionBase *createInputSection(uint32_t idx, const Elf_Shdr &sec,
StringRef name, StringRef shstrtab);
StringRef name);
bool shouldMerge(const Elf_Shdr &sec, StringRef name);