about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-01 04:36:50 -0700
committerbors <bors@rust-lang.org>2014-05-01 04:36:50 -0700
commit239557de6de72748a5c7604081b202d53f7d9ac9 (patch)
tree7ad7f8d5d2a1da5228fdbb0b6784fbde5010f612 /src/rustllvm/RustWrapper.cpp
parent5c0abead8200344d90105b4dff8b148c65287674 (diff)
parentb9af043879a8b11f4fd5dc563291b66d7eabdd64 (diff)
downloadrust-239557de6de72748a5c7604081b202d53f7d9ac9.tar.gz
rust-239557de6de72748a5c7604081b202d53f7d9ac9.zip
auto merge of #13724 : nikomatsakis/rust/expr-use-visitor, r=pnkfelix
Pre-step towards issue #12624 and others: Introduce ExprUseVisitor, remove the
moves computation. ExprUseVisitor is a visitor that walks the AST for a
function and calls a delegate to inform it where borrows, copies, and moves
occur.

In this patch, I rewrite the gather_loans visitor to use ExprUseVisitor, but in
future patches, I think we could rewrite regionck, check_loans, and possibly
other passes to use it as well. This would refactor the repeated code between
those places that tries to determine where copies/moves/etc occur.

r? @alexcrichton
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions