about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorChristopher Vittal <christopher.vittal@gmail.com>2017-09-28 00:14:34 -0400
committerChristopher Vittal <christopher.vittal@gmail.com>2017-10-04 23:45:09 -0400
commit54d63a0d3380758ae359995330fb64ccdd79069a (patch)
tree46e671e9c59c1c15af21c480711928fe3239dd8d /src/rustllvm/RustWrapper.cpp
parent271a492cb2028090c0198e893c18024c19bb6fc7 (diff)
downloadrust-54d63a0d3380758ae359995330fb64ccdd79069a.tar.gz
rust-54d63a0d3380758ae359995330fb64ccdd79069a.zip
Expand mir dump in order to handle NLL pass
Extend `dump_mir` and functions it calls in order to allow callers to
add custom information. We do this by adding an enum `PassWhere` and
an extra argument of type `FnMut(PassWhere, &mut Write) ->
io::Result<()>`.  This callback is responsible for printing the extra
information when MIR is dumped at various stages.

For the "nll" pass, use the new mechanism to dump the `Region`
information after the header, but before the control flow graph for
every function.

In the interest of keeping the output somewhat concise, implement
a custom Debug impl for `Region`

Open Questions:

    * What should we call what has been called `PassWhere` so far?
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions