forked from OSchip/llvm-project
[ELF] - Remove useless code. NFC.
We set Type and Flags inside OutputSection::addSection, so this lines looks to be excessive. llvm-svn: 317002
This commit is contained in:
parent
5a213f2f4c
commit
f173a6309f
|
@ -215,8 +215,6 @@ void elf::sortByOrder(MutableArrayRef<InputSection *> In,
|
|||
|
||||
static OutputSection *createSection(InputSectionBase *IS, StringRef OutsecName) {
|
||||
OutputSection *Sec = Script->createOutputSection(OutsecName, "<internal>");
|
||||
Sec->Type = IS->Type;
|
||||
Sec->Flags = IS->Flags;
|
||||
Sec->addSection(cast<InputSection>(IS));
|
||||
return Sec;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue