Skip to content

Commit

Permalink
[ORC] Add an ostream operator for ExecutorAddrRange.
Browse files Browse the repository at this point in the history
This makes it easier to print addr ranges in debugging output.
  • Loading branch information
lhames committed Jan 12, 2022
1 parent 3fabda5 commit c2ba535
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -167,6 +167,10 @@ inline raw_ostream &operator<<(raw_ostream &OS, const ExecutorAddr &A) {
return OS << formatv("{0:x}", A.getValue());
}

inline raw_ostream &operator<<(raw_ostream &OS, const ExecutorAddrRange &R) {
return OS << formatv("{0:x} -- {1:x}", R.Start.getValue(), R.End.getValue());
}

namespace shared {

class SPSExecutorAddr {};
Expand Down

0 comments on commit c2ba535

Please sign in to comment.