forked from OSchip/llvm-project
Reduce code duplication a bit.
Thanks to George Rimar for pointing it out. llvm-svn: 328571
This commit is contained in:
parent
41fb2dba9c
commit
9c2c938521
|
@ -386,9 +386,9 @@ LinkerScript::computeInputSections(const InputSectionDescription *Cmd) {
|
|||
// which are common because they are in the default bfd script.
|
||||
// We do not ignore SHT_REL[A] linker-synthesized sections here because
|
||||
// want to support scripts that do custom layout for them.
|
||||
if (!isa<SyntheticSection>(Sec) &&
|
||||
(Sec->Type == SHT_REL || Sec->Type == SHT_RELA))
|
||||
continue;
|
||||
if (auto *IS = dyn_cast<InputSection>(Sec))
|
||||
if (IS->getRelocatedSection())
|
||||
continue;
|
||||
|
||||
std::string Filename = getFilename(Sec->File);
|
||||
if (!Cmd->FilePat.match(Filename) ||
|
||||
|
|
Loading…
Reference in New Issue