forked from OSchip/llvm-project
Remove dead code.
Since now we always set SHT_PROGBITS to .eh_frame sections, this code path is not executed at runtime. llvm-svn: 270446
This commit is contained in:
parent
3b31e6711b
commit
8a6ef4e6b2
|
@ -1208,14 +1208,7 @@ OutputSectionFactory<ELFT>::createKey(InputSectionBase<ELFT> *C,
|
|||
if (isa<MergeInputSection<ELFT>>(C))
|
||||
Alignment = std::max(H->sh_addralign, H->sh_entsize);
|
||||
|
||||
// GNU as can give .eh_frame section type SHT_PROGBITS or SHT_X86_64_UNWIND
|
||||
// depending on the construct. We want to canonicalize it so that
|
||||
// there is only one .eh_frame in the end.
|
||||
uint32_t Type = H->sh_type;
|
||||
if (Type == SHT_PROGBITS && Config->EMachine == EM_X86_64 &&
|
||||
isa<EHInputSection<ELFT>>(C))
|
||||
Type = SHT_X86_64_UNWIND;
|
||||
|
||||
return SectionKey<ELFT::Is64Bits>{OutsecName, Type, Flags, Alignment};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue