diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-07 09:57:01 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-07 09:57:01 +0800 |
commit | d47803233fdc6a5576d5eb9f4495bce61f42ff7a (patch) | |
tree | 5e2137126b4756927a11cfc85ee74fb7cd5ad262 /src/mir/from_hir.hpp | |
parent | 84f82d42a8bd56f1f9dbd62d9d0255554002d315 (diff) | |
download | mrust-d47803233fdc6a5576d5eb9f4495bce61f42ff7a.tar.gz |
MIR Gen - Cleaner Box support, start on move-out structure
Diffstat (limited to 'src/mir/from_hir.hpp')
-rw-r--r-- | src/mir/from_hir.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mir/from_hir.hpp b/src/mir/from_hir.hpp index 1f9007a5..475087c7 100644 --- a/src/mir/from_hir.hpp +++ b/src/mir/from_hir.hpp @@ -116,6 +116,11 @@ public: const ::HIR::SimplePath* lang_Box() const { return m_lang_Box; } const ::HIR::Crate& crate() const { return m_resolve.m_crate; } + //::HIR::TypeRef* is_type_owned_box(::HIR::TypeRef& ty) const { + //} + /// Check if the passed type is Box<T> and returns a pointer to the T type if so, otherwise nullptr + const ::HIR::TypeRef* is_type_owned_box(const ::HIR::TypeRef& ty) const; + // - Values ::MIR::LValue new_temporary(const ::HIR::TypeRef& ty); ::MIR::LValue lvalue_or_temp(const Span& sp, const ::HIR::TypeRef& ty, ::MIR::RValue val); |