summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/ScheduleDAG.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-26 01:10:55 +0000
committerDan Gohman <gohman@apple.com>2010-05-26 01:10:55 +0000
commita4e4ffd389497eb28f5fe91521fb71da4340e5d6 (patch)
tree4b451f9b85311f831df0e12084e3a13e1f4f0258 /include/llvm/CodeGen/ScheduleDAG.h
parent4f989451328f638bab0e9535bbc1704ea7262324 (diff)
downloadllvm-a4e4ffd389497eb28f5fe91521fb71da4340e5d6.tar.gz
llvm-a4e4ffd389497eb28f5fe91521fb71da4340e5d6.tar.bz2
llvm-a4e4ffd389497eb28f5fe91521fb71da4340e5d6.tar.xz
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
Diffstat (limited to 'include/llvm/CodeGen/ScheduleDAG.h')
-rw-r--r--include/llvm/CodeGen/ScheduleDAG.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h
index d7714029c1..076268b99c 100644
--- a/include/llvm/CodeGen/ScheduleDAG.h
+++ b/include/llvm/CodeGen/ScheduleDAG.h
@@ -427,7 +427,12 @@ namespace llvm {
virtual bool empty() const = 0;
virtual void push(SUnit *U) = 0;
- virtual void push_all(const std::vector<SUnit *> &Nodes) = 0;
+ void push_all(const std::vector<SUnit *> &Nodes) {
+ for (std::vector<SUnit *>::const_iterator I = Nodes.begin(),
+ E = Nodes.end(); I != E; ++I)
+ push(*I);
+ }
+
virtual SUnit *pop() = 0;
virtual void remove(SUnit *SU) = 0;