Skip to content

Commit

Permalink
HIR Const Eval - Remove some useless debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Jan 2, 2024
1 parent a66b506 commit 28ae543
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/hir_conv/constant_evaluation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,6 @@ namespace MIR { namespace eval {

state.m_monomorphed_rettype = &ret_type;
state.m_monomorphed_locals = &local_types;
DEBUG(ms << " " << this->ms);
}

StaticRefPtr get_staticref_mono(const ::HIR::Path& p)
Expand Down Expand Up @@ -1477,7 +1476,6 @@ namespace HIR {
std::move(args)
));
this->num_frames += 1;
DEBUG(this->call_stack.back()->ms);
}

AllocationPtr Evaluator::run_until_stack_empty()
Expand Down Expand Up @@ -2263,7 +2261,6 @@ namespace HIR {

MonomorphState fcn_ms;
auto& fcn = get_function(this->root_span, this->resolve, *fcnp, fcn_ms);
DEBUG(fcnp_raw << " " << fcn_ms << " -> " << fcnp);

// Argument values
::std::vector<AllocationPtr> call_args;
Expand All @@ -2289,7 +2286,6 @@ namespace HIR {
// Call by invoking evaluate_constant on the function
const auto* mir = this->resolve.m_crate.get_or_gen_mir( ::HIR::ItemPath(*fcnp), fcn );
MIR_ASSERT(state, mir, "No MIR for function " << fcnp);
DEBUG(fcnp_raw << " " << fcn_ms << " -> " << fcnp);

push_stack_entry(::FmtLambda([=](std::ostream& os){ os << *fcnp; }), *mir, std::move(fcn_ms), std::move(ret_ty), ::std::move(arg_defs), std::move(call_args));
return TERM_RET_PUSHED;
Expand Down

0 comments on commit 28ae543

Please sign in to comment.