From a4e4ffd389497eb28f5fe91521fb71da4340e5d6 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 26 May 2010 01:10:55 +0000 Subject: Change push_all to a non-virtual function and implement it in the base class, since all the implementations are the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104659 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/LatencyPriorityQueue.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'include/llvm/CodeGen/LatencyPriorityQueue.h') diff --git a/include/llvm/CodeGen/LatencyPriorityQueue.h b/include/llvm/CodeGen/LatencyPriorityQueue.h index 28b6909a2b..18c418b103 100644 --- a/include/llvm/CodeGen/LatencyPriorityQueue.h +++ b/include/llvm/CodeGen/LatencyPriorityQueue.h @@ -75,15 +75,7 @@ public: bool empty() const { return Queue.empty(); } - virtual void push(SUnit *U) { - push_impl(U); - } - void push_impl(SUnit *U); - - void push_all(const std::vector &Nodes) { - for (unsigned i = 0, e = Nodes.size(); i != e; ++i) - push_impl(Nodes[i]); - } + virtual void push(SUnit *U); SUnit *pop() { if (empty()) return NULL; -- cgit v1.2.3