dblaikie added a comment. what's the printer used for? Would it be best to generalize it (perhaps adding another extension point to the graph traits, so NodeRefs can be printed out - with a default implementation for pointers)? https://reviews.llvm.org/D23580