HomePhabricator

[LLD][ELF] Fix getRankProximity to "ignore" not live sections

Authored by andrewng on Apr 30 2019, 5:27 AM.

Description

[LLD][ELF] Fix getRankProximity to "ignore" not live sections

This is a follow up to r358979 which made findOrphanPos only consider
live sections. Unfortunately, this required change to getRankProximity,
used by findOrphanPos, was missed.

Differential Revision: https://reviews.llvm.org/D61197

llvm-svn: 359554