JuliaLang/julia — pull request #9521 by timholy (2014-12-31 15:24:31+00:00)
Title: Add io arguments to code_*, and improve reflection tests

code_native, code_llvm, and code_warntype display their results rather than returning an AST. This allows one to specify an IO argument to control where that output ends up. In turn, this allows one to write better tests for these functions.

This also adds all-caps emphasis for when `Base.have_color == false`, and for good measure throws in a more careful disabling of emphasis when printing "raw" `Expr` objects.

@tkelman, I wonder if this might work around #9501? If so, it would suggest that `redirect_stdout` and `redirect_stderr` might have problems.