Allow IR dumping to use something other than std::cout
commite3f5161e5214a47cf0a4f228b745b76af85559ab
authorOwen Yamauchi <oyamauchi@fb.com>
Wed, 16 Jan 2013 18:31:37 +0000 (16 10:31 -0800)
committerSara Golemon <sgolemon@fb.com>
Thu, 17 Jan 2013 18:43:50 +0000 (17 10:43 -0800)
treee06d5bbb3bdbe0aa69d269f67705df02b5cdfcef
parent83a8937c44c0f45dae7f9ea73dfdc5b0b1bd79f8
Allow IR dumping to use something other than std::cout

traceInstruction was hardcoded to use stdout, via printf. Abstract that out.
Everything's still going to stdout, but we can now change that to any other
std::ostream if we want.
src/runtime/vm/translator/hopt/ir.cpp
src/runtime/vm/translator/hopt/irtranslator.cpp