diff options
Diffstat (limited to 'src/mir/helpers.hpp')
-rw-r--r-- | src/mir/helpers.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mir/helpers.hpp b/src/mir/helpers.hpp index aef012a7..6382dbed 100644 --- a/src/mir/helpers.hpp +++ b/src/mir/helpers.hpp @@ -21,6 +21,9 @@ namespace MIR { class Function; class LValue; +class BasicBlock; + +typedef unsigned int BasicBlockId; struct CheckFailure: public ::std::exception @@ -84,6 +87,8 @@ public: } void print_msg(const char* tag, ::std::function<void(::std::ostream& os)> cb) const; + const ::MIR::BasicBlock& get_block(::MIR::BasicBlockId id) const; + const ::HIR::TypeRef& get_lvalue_type(::HIR::TypeRef& tmp, const ::MIR::LValue& val) const; const ::HIR::TypeRef* is_type_owned_box(const ::HIR::TypeRef& ty) const; |