mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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
This commit is contained in:
parent
4b7263d855
commit
d6b76f9466
@ -124,8 +124,6 @@ namespace llvm {
|
|||||||
|
|
||||||
void remove(SUnit *SU) override;
|
void remove(SUnit *SU) override;
|
||||||
|
|
||||||
void dump(ScheduleDAG* DAG) const override;
|
|
||||||
|
|
||||||
/// scheduledNode - Main resource tracking point.
|
/// scheduledNode - Main resource tracking point.
|
||||||
void scheduledNode(SUnit *Node) override;
|
void scheduledNode(SUnit *Node) override;
|
||||||
bool isResourceAvailable(SUnit *SU);
|
bool isResourceAvailable(SUnit *SU);
|
||||||
|
@ -637,17 +637,3 @@ void ResourcePriorityQueue::remove(SUnit *SU) {
|
|||||||
|
|
||||||
Queue.pop_back();
|
Queue.pop_back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef NDEBUG
|
|
||||||
void ResourcePriorityQueue::dump(ScheduleDAG *DAG) const {}
|
|
||||||
#else
|
|
||||||
void ResourcePriorityQueue::dump(ScheduleDAG *DAG) const {
|
|
||||||
ResourcePriorityQueue q = *this;
|
|
||||||
while (!q.empty()) {
|
|
||||||
SUnit *su = q.pop();
|
|
||||||
dbgs() << "Height " << su->getHeight() << ": ";
|
|
||||||
su->dump(DAG);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user