[Decompiler] Fix printing of lets (#314)

* fix let prints and windows warnings

* missing include for windows

* windows again
This commit is contained in:
water111
2021-03-07 12:01:59 -05:00
committed by GitHub
parent d8a82eeca1
commit 9074a35b9b
33 changed files with 158 additions and 86 deletions
+7
View File
@@ -212,6 +212,7 @@ goos::Object LoadSourceElement::to_form_internal(const Env& env) const {
return pretty_print::build_list("l.d", m_addr->to_form(env));
default:
assert(false);
return {};
}
break;
case LoadVarOp::Kind::SIGNED:
@@ -224,10 +225,12 @@ goos::Object LoadSourceElement::to_form_internal(const Env& env) const {
return pretty_print::build_list("l.w", m_addr->to_form(env));
default:
assert(false);
return {};
}
break;
default:
assert(false);
return {};
}
}
@@ -1327,6 +1330,7 @@ goos::Object GenericOperator::to_form(const Env& env) const {
return m_function->to_form(env);
default:
assert(false);
return {};
}
}
@@ -1369,6 +1373,7 @@ bool GenericOperator::operator==(const GenericOperator& other) const {
return false;
default:
assert(false);
return false;
}
}
@@ -1473,6 +1478,7 @@ std::string fixed_operator_to_string(FixedOperatorKind kind) {
return "pair?";
default:
assert(false);
return "";
}
}
@@ -1650,6 +1656,7 @@ goos::Object DerefToken::to_form(const Env& env) const {
return pretty_print::to_symbol("PLACEHOLDER");
default:
assert(false);
return {};
}
}