llvm.org GIT mirror llvm / d6b76f9
Remove ResourcePriorityQueue::dump as it relies on copying a non-copyable type which would result in a double-delete git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231126 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 5 years ago
2 changed file(s) with 0 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
123123
124124 void remove(SUnit *SU) override;
125125
126 void dump(ScheduleDAG* DAG) const override;
127
128126 /// scheduledNode - Main resource tracking point.
129127 void scheduledNode(SUnit *Node) override;
130128 bool isResourceAvailable(SUnit *SU);
636636
637637 Queue.pop_back();
638638 }
639
640
641 #ifdef NDEBUG
642 void ResourcePriorityQueue::dump(ScheduleDAG *DAG) const {}
643 #else
644 void ResourcePriorityQueue::dump(ScheduleDAG *DAG) const {
645 ResourcePriorityQueue q = *this;
646 while (!q.empty()) {
647 SUnit *su = q.pop();
648 dbgs() << "Height " << su->getHeight() << ": ";
649 su->dump(DAG);
650 }
651 }
652 #endif