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(
109109
110110 // Process input sections
111111 for (const auto &isec : inputSections) {
112- if (!isec->hasValidData ())
113- continue ;
114-
115112 unsigned sectionIdx = sections.size ();
116113 sectionToIdx.try_emplace (isec->getSection (), sectionIdx);
117114 sections.emplace_back (isec.get ());
@@ -371,4 +368,4 @@ BPSectionBase::reorderSectionsByBalancedPartitioning(
371368 for (const auto *isec : orderedSections)
372369 sectionPriorities[isec] = --highestAvailablePriority;
373370 return sectionPriorities;
374- }
371+ }
Original file line number Diff line number Diff line change @@ -68,10 +68,6 @@ class BPSectionMacho : public BPSectionBase {
6868
6969 bool isCodeSection () const override { return macho::isCodeSection (isec); }
7070
71- bool hasValidData () const override {
72- return isec && !isec->data .empty () && isec->data .data ();
73- }
74-
7571 SmallVector<std::unique_ptr<BPSymbol>> getSymbols () const override {
7672 SmallVector<std::unique_ptr<BPSymbol>> symbols;
7773 for (auto *sym : isec->symbols )
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class BPSectionBase {
3737public:
3838 virtual ~BPSectionBase () = default ;
3939 virtual uint64_t getSize () const = 0;
40- virtual bool hasValidData () const = 0;
4140 virtual bool isCodeSection () const = 0;
4241 virtual llvm::SmallVector<std::unique_ptr<BPSymbol>> getSymbols () const = 0;
4342 virtual const void *getSection () const = 0;
You can’t perform that action at this time.
0 commit comments