File tree Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,6 @@ BPSectionBase::reorderSectionsByBalancedPartitioning(
109
109
110
110
// Process input sections
111
111
for (const auto &isec : inputSections) {
112
- if (!isec->hasValidData ())
113
- continue ;
114
-
115
112
unsigned sectionIdx = sections.size ();
116
113
sectionToIdx.try_emplace (isec->getSection (), sectionIdx);
117
114
sections.emplace_back (isec.get ());
@@ -371,4 +368,4 @@ BPSectionBase::reorderSectionsByBalancedPartitioning(
371
368
for (const auto *isec : orderedSections)
372
369
sectionPriorities[isec] = --highestAvailablePriority;
373
370
return sectionPriorities;
374
- }
371
+ }
Original file line number Diff line number Diff line change @@ -68,10 +68,6 @@ class BPSectionMacho : public BPSectionBase {
68
68
69
69
bool isCodeSection () const override { return macho::isCodeSection (isec); }
70
70
71
- bool hasValidData () const override {
72
- return isec && !isec->data .empty () && isec->data .data ();
73
- }
74
-
75
71
SmallVector<std::unique_ptr<BPSymbol>> getSymbols () const override {
76
72
SmallVector<std::unique_ptr<BPSymbol>> symbols;
77
73
for (auto *sym : isec->symbols )
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class BPSectionBase {
37
37
public:
38
38
virtual ~BPSectionBase () = default ;
39
39
virtual uint64_t getSize () const = 0;
40
- virtual bool hasValidData () const = 0;
41
40
virtual bool isCodeSection () const = 0;
42
41
virtual llvm::SmallVector<std::unique_ptr<BPSymbol>> getSymbols () const = 0;
43
42
virtual const void *getSection () const = 0;
You can’t perform that action at this time.
0 commit comments