summaryrefslogtreecommitdiff
path: root/src/mir/helpers.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir/helpers.hpp')
-rw-r--r--src/mir/helpers.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mir/helpers.hpp b/src/mir/helpers.hpp
index b0499ec8..40dbd4a3 100644
--- a/src/mir/helpers.hpp
+++ b/src/mir/helpers.hpp
@@ -40,7 +40,7 @@ public:
typedef ::std::vector< ::std::pair< ::HIR::Pattern, ::HIR::TypeRef> > args_t;
private:
const unsigned int STMT_TERM = ~0u;
-
+
public:
const Span& sp;
const ::StaticTraitResolve& m_resolve;
@@ -51,7 +51,7 @@ private:
const args_t& m_args;
const ::MIR::Function& m_fcn;
const ::HIR::SimplePath* m_lang_Box = nullptr;
-
+
unsigned int bb_idx = 0;
unsigned int stmt_idx = 0;
@@ -69,7 +69,7 @@ public:
m_lang_Box = &m_crate.m_lang_items.at("owned_box");
}
}
-
+
void set_cur_stmt(unsigned int bb_idx, unsigned int stmt_idx) {
this->bb_idx = bb_idx;
this->stmt_idx = stmt_idx;
@@ -78,7 +78,7 @@ public:
this->bb_idx = bb_idx;
this->stmt_idx = STMT_TERM;
}
-
+
void print_bug(::std::function<void(::std::ostream& os)> cb) const {
print_msg("ERROR", cb);
}
@@ -86,12 +86,12 @@ public:
print_msg("TODO", cb);
}
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_static_type(::HIR::TypeRef& tmp, const ::HIR::Path& path) 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;
};