Skip to content

Commit f81193d

Browse files
[SelectionDAG] Remove obsolete comments (NFC) (#138483)
These functions do not return boolean values.
1 parent 15f7c6e commit f81193d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,10 @@ class ScheduleDAGFast : public ScheduleDAGSDNodes {
8080
void Schedule() override;
8181

8282
/// AddPred - adds a predecessor edge to SUnit SU.
83-
/// This returns true if this is a new predecessor.
84-
void AddPred(SUnit *SU, const SDep &D) {
85-
SU->addPred(D);
86-
}
83+
void AddPred(SUnit *SU, const SDep &D) { SU->addPred(D); }
8784

8885
/// RemovePred - removes a predecessor edge from SUnit SU.
89-
/// This returns true if an edge was removed.
90-
void RemovePred(SUnit *SU, const SDep &D) {
91-
SU->removePred(D);
92-
}
86+
void RemovePred(SUnit *SU, const SDep &D) { SU->removePred(D); }
9387

9488
private:
9589
void ReleasePred(SUnit *SU, SDep *PredEdge);

0 commit comments

Comments
 (0)