echristo added a comment. Can you make this follow the model of print(raw_ostream) + dump() that uses print(OS) similar to the rest of the standard dumps? Also, llvm::dbgs() not llvm::errs() :) Thanks! -eric http://reviews.llvm.org/D15631