[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:
George Rimar 2017-10-31 14:21:30 +00:00
parent 5a213f2f4c
commit f173a6309f
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}