| 24 | const LocIndex &IRNode::getIndex() const { return Index; } |
| 25 | |
| 26 | bool IRNode::operator<(const IRNode &Rhs) const { |
| 27 | const auto &ThisIndex = getIndex(); |
| 28 | const auto &RhsIndex = Rhs.getIndex(); |
| 29 | if (ThisIndex != RhsIndex) |
| 30 | return ThisIndex < RhsIndex; |
| 31 | return Name < Rhs.getName(); |
| 32 | } |
| 33 | |
| 34 | raw_ostream &operator<<(raw_ostream &O, const IRNode &Src) { |
| 35 | O << Src.getIndex().getIDAsString() << "\n"; |