MCPcopy Create free account
hub / github.com/Samsung/UTopia / operator<

Method operator<

lib/astirmap/IRNode.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24const LocIndex &IRNode::getIndex() const { return Index; }
25
26bool 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
34raw_ostream &operator<<(raw_ostream &O, const IRNode &Src) {
35 O << Src.getIndex().getIDAsString() << "\n";

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected