diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-02-25 12:07:12 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-02-25 12:07:12 +0800 |
commit | 8068936c1900453fdcbb74c34ed228519ac4e06b (patch) | |
tree | 2e0847a2b7a0378f49153e035bf8f7ca135ab4ce /src/mir/from_hir.hpp | |
parent | cb04e0ba3611deff03566eb035b2c35b4b8890f9 (diff) | |
download | mrust-8068936c1900453fdcbb74c34ed228519ac4e06b.tar.gz |
MIR Gen - Use MIR::Param (and associated changes)
Diffstat (limited to 'src/mir/from_hir.hpp')
-rw-r--r-- | src/mir/from_hir.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mir/from_hir.hpp b/src/mir/from_hir.hpp index c687d275..c8d34151 100644 --- a/src/mir/from_hir.hpp +++ b/src/mir/from_hir.hpp @@ -166,6 +166,8 @@ public: ::MIR::LValue get_result_unwrap_lvalue(const Span& sp); /// Obtains the result, copying into a temporary if required ::MIR::LValue get_result_in_lvalue(const Span& sp, const ::HIR::TypeRef& ty, bool allow_missing_value=false); + /// Obtains a result in a param (or a lvalue) + ::MIR::Param get_result_in_param(const Span& sp, const ::HIR::TypeRef& ty, bool allow_missing_value=false); // - Statements // Push an assignment. NOTE: This also marks the rvalue as moved |