diff options
| author | Dan Gohman <gohman@apple.com> | 2008-12-16 01:00:55 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-12-16 01:00:55 +0000 |
| commit | 17214e633d8dd84699735cf7a5ae099964dbbf49 (patch) | |
| tree | 7b21bb57febdbf38b8557d85df91cb0f4d10e62e /llvm/lib | |
| parent | cb6accfea97f5e5802556468e51927b14230cef1 (diff) | |
| download | bcm5719-llvm-17214e633d8dd84699735cf7a5ae099964dbbf49.tar.gz bcm5719-llvm-17214e633d8dd84699735cf7a5ae099964dbbf49.zip | |
Make addPred and removePred return void, since the return value is not
currently used by anything.
llvm-svn: 61066
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | 8 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp index 9eefc7ff001..6ac608f943b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp @@ -79,14 +79,14 @@ public: /// AddPred - adds a predecessor edge to SUnit SU. /// This returns true if this is a new predecessor. - bool AddPred(SUnit *SU, const SDep &D) { - return SU->addPred(D); + void AddPred(SUnit *SU, const SDep &D) { + SU->addPred(D); } /// RemovePred - removes a predecessor edge from SUnit SU. /// This returns true if an edge was removed. - bool RemovePred(SUnit *SU, const SDep &D) { - return SU->removePred(D); + void RemovePred(SUnit *SU, const SDep &D) { + SU->removePred(D); } private: diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 1a18b819ac3..49a5ac19048 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -101,17 +101,17 @@ public: /// AddPred - adds a predecessor edge to SUnit SU. /// This returns true if this is a new predecessor. /// Updates the topological ordering if required. - bool AddPred(SUnit *SU, const SDep &D) { + void AddPred(SUnit *SU, const SDep &D) { Topo.AddPred(SU, D.getSUnit()); - return SU->addPred(D); + SU->addPred(D); } /// RemovePred - removes a predecessor edge from SUnit SU. /// This returns true if an edge was removed. /// Updates the topological ordering if required. - bool RemovePred(SUnit *SU, const SDep &D) { + void RemovePred(SUnit *SU, const SDep &D) { Topo.RemovePred(SU, D.getSUnit()); - return SU->removePred(D); + SU->removePred(D); } private: |

