diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-03-03 21:16:56 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-03-03 21:16:56 +0000 |
commit | 0ef4488df25d4ed3b545395e258a25ec1031f28c (patch) | |
tree | 702848f58232ed78b335819325fe9db2881a9598 /llvm/lib/CodeGen/LatencyPriorityQueue.cpp | |
parent | 84483d247ffd8343e46d4c47f78b58ed3a68a5b7 (diff) | |
download | bcm5719-llvm-0ef4488df25d4ed3b545395e258a25ec1031f28c.tar.gz bcm5719-llvm-0ef4488df25d4ed3b545395e258a25ec1031f28c.zip |
Remove LatencyPriorityQueue::dump because it relies on an implicit copy ctor which is deprecated in C++11 (due to the presence of a user-declare dtor in the base class)
This type could be made copyable (= default a protected copy ctor in the
base class, and preferably make the derived class final to avoid risks
of providing a slicing copy operation to further derived classes) but it
seemed easier to avoid that complexity for a dump function that I assume
(by symmetry with ResourcePriorityQueue's dump, which was actively
buggy) not often used.
llvm-svn: 231133
Diffstat (limited to 'llvm/lib/CodeGen/LatencyPriorityQueue.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LatencyPriorityQueue.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/LatencyPriorityQueue.cpp b/llvm/lib/CodeGen/LatencyPriorityQueue.cpp index cdf505e3e0c..43218492ed1 100644 --- a/llvm/lib/CodeGen/LatencyPriorityQueue.cpp +++ b/llvm/lib/CodeGen/LatencyPriorityQueue.cpp @@ -138,16 +138,3 @@ void LatencyPriorityQueue::remove(SUnit *SU) { std::swap(*I, Queue.back()); Queue.pop_back(); } - -#ifdef NDEBUG -void LatencyPriorityQueue::dump(ScheduleDAG *DAG) const {} -#else -void LatencyPriorityQueue::dump(ScheduleDAG *DAG) const { - LatencyPriorityQueue q = *this; - while (!q.empty()) { - SUnit *su = q.pop(); - dbgs() << "Height " << su->getHeight() << ": "; - su->dump(DAG); - } -} -#endif |