diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 8b0536fe4329..13d2203f21a8 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -25,7 +25,7 @@ using namespace lld; using namespace lld::elf; template -InputSectionBase::InputSectionBase(ObjectFile *File, +InputSectionBase::InputSectionBase(elf::ObjectFile *File, const Elf_Shdr *Header, Kind SectionKind) : Header(Header), File(File), SectionKind(SectionKind), Repl(this) { @@ -93,7 +93,8 @@ InputSectionBase::getRelocTarget(const Elf_Rela &Rel) const { } template -InputSection::InputSection(ObjectFile *F, const Elf_Shdr *Header) +InputSection::InputSection(elf::ObjectFile *F, + const Elf_Shdr *Header) : InputSectionBase(F, Header, Base::Regular) {} template @@ -331,12 +332,12 @@ void InputSection::replace(InputSection *Other) { template SplitInputSection::SplitInputSection( - ObjectFile *File, const Elf_Shdr *Header, + elf::ObjectFile *File, const Elf_Shdr *Header, typename InputSectionBase::Kind SectionKind) : InputSectionBase(File, Header, SectionKind) {} template -EHInputSection::EHInputSection(ObjectFile *F, +EHInputSection::EHInputSection(elf::ObjectFile *F, const Elf_Shdr *Header) : SplitInputSection(F, Header, InputSectionBase::EHFrame) { // Mark .eh_frame sections as live by default because there are @@ -424,7 +425,7 @@ MergeInputSection::getOffset(uintX_t Offset) { } template -MipsReginfoInputSection::MipsReginfoInputSection(ObjectFile *F, +MipsReginfoInputSection::MipsReginfoInputSection(elf::ObjectFile *F, const Elf_Shdr *Hdr) : InputSectionBase(F, Hdr, InputSectionBase::MipsReginfo) { // Initialize this->Reginfo.