summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-06 18:36:56 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-06 18:36:56 +0800
commit84f82d42a8bd56f1f9dbd62d9d0255554002d315 (patch)
treefa9c5f2c49136f2ec7e793420e265c1a9c4c990a /src/mir/from_hir.hpp
parentde087df3045bb802fe0de3cbb7859ca63d097d50 (diff)
downloadmrust-84f82d42a8bd56f1f9dbd62d9d0255554002d315.tar.gz
MIR Gen - Rough support for Box
Diffstat (limited to 'src/mir/from_hir.hpp')
-rw-r--r--src/mir/from_hir.hpp3
1 files changed, 3 insertions, 0 deletions
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