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:
David Blaikie 2015-03-03 20:49:05 +00:00
parent 4b7263d855
commit d6b76f9466
2 changed files with 0 additions and 16 deletions

View File

@ -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);

View File

@ -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