diff options
Diffstat (limited to 'src/mir/helpers.hpp')
-rw-r--r-- | src/mir/helpers.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir/helpers.hpp b/src/mir/helpers.hpp index ece20605..e8f52651 100644 --- a/src/mir/helpers.hpp +++ b/src/mir/helpers.hpp @@ -21,6 +21,7 @@ namespace MIR { class Function; class LValue; +class Constant; class BasicBlock; typedef unsigned int BasicBlockId; @@ -96,6 +97,8 @@ public: const ::HIR::TypeRef& get_static_type(::HIR::TypeRef& tmp, const ::HIR::Path& path) const; const ::HIR::TypeRef& get_lvalue_type(::HIR::TypeRef& tmp, const ::MIR::LValue& val) const; + ::HIR::TypeRef get_const_type(const ::MIR::Constant& c) const; + const ::HIR::TypeRef* is_type_owned_box(const ::HIR::TypeRef& ty) const; friend ::std::ostream& operator<<(::std::ostream& os, const TypeResolve& x) { |