mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 08:57:43 +08:00
[ELF] createInputSection: remove unneeded argument. NFC
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user