summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-10-31 14:21:30 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-10-31 14:21:30 +0000
commitf173a6309f730008852dff37b88e7617b55f17a1 (patch)
tree253662c10f23b0a232f5243e660a3a0bda68a339 /lld/ELF/OutputSections.cpp
parent5a213f2f4cd8fbb02b3c9c0ac8e280f27b3d1a5f (diff)
downloadbcm5719-llvm-f173a6309f730008852dff37b88e7617b55f17a1.tar.gz
bcm5719-llvm-f173a6309f730008852dff37b88e7617b55f17a1.zip
[ELF] - Remove useless code. NFC.
We set Type and Flags inside OutputSection::addSection, so this lines looks to be excessive. llvm-svn: 317002
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r--lld/ELF/OutputSections.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 10eebb4028f..cf19e78d346 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -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;
}
OpenPOWER on IntegriCloud