diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-04-21 19:21:53 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-04-24 19:59:49 -0400 |
| commit | 96dfed2b62c6e84a542f9a170133ec528e2191c2 (patch) | |
| tree | 858758be479d75ed97b70014ce19927fa750280a /src/rustllvm/RustWrapper.cpp | |
| parent | 77a975df85694a4de07abb5f99f1159799b1160d (diff) | |
| download | rust-96dfed2b62c6e84a542f9a170133ec528e2191c2.tar.gz rust-96dfed2b62c6e84a542f9a170133ec528e2191c2.zip | |
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
