aboutsummaryrefslogtreecommitdiff
path: root/lld/Common/BPSectionOrdererBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/Common/BPSectionOrdererBase.cpp')
-rw-r--r--lld/Common/BPSectionOrdererBase.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lld/Common/BPSectionOrdererBase.cpp b/lld/Common/BPSectionOrdererBase.cpp
index 7c5874f..75be4f6 100644
--- a/lld/Common/BPSectionOrdererBase.cpp
+++ b/lld/Common/BPSectionOrdererBase.cpp
@@ -109,9 +109,6 @@ BPSectionBase::reorderSectionsByBalancedPartitioning(
// Process input sections
for (const auto &isec : inputSections) {
- if (!isec->hasValidData())
- continue;
-
unsigned sectionIdx = sections.size();
sectionToIdx.try_emplace(isec->getSection(), sectionIdx);
sections.emplace_back(isec.get());
@@ -371,4 +368,4 @@ BPSectionBase::reorderSectionsByBalancedPartitioning(
for (const auto *isec : orderedSections)
sectionPriorities[isec] = --highestAvailablePriority;
return sectionPriorities;
-} \ No newline at end of file
+}