From 84f82d42a8bd56f1f9dbd62d9d0255554002d315 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 6 Sep 2016 18:36:56 +0800 Subject: MIR Gen - Rough support for Box --- src/mir/from_hir.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mir/from_hir.hpp') diff --git a/src/mir/from_hir.hpp b/src/mir/from_hir.hpp index c5106bd0..1f9007a5 100644 --- a/src/mir/from_hir.hpp +++ b/src/mir/from_hir.hpp @@ -78,6 +78,8 @@ class MirBuilder const ::HIR::Function::args_t& m_args; ::MIR::Function& m_output; + const ::HIR::SimplePath* m_lang_Box; + unsigned int m_current_block; bool m_block_active; @@ -111,6 +113,7 @@ public: MirBuilder(const Span& sp, const StaticTraitResolve& resolve, const ::HIR::Function::args_t& args, ::MIR::Function& output); ~MirBuilder(); + const ::HIR::SimplePath* lang_Box() const { return m_lang_Box; } const ::HIR::Crate& crate() const { return m_resolve.m_crate; } // - Values -- cgit v1.2.3