If statement for Iulia / inline assembly.

This commit is contained in:
chriseth
2017-11-22 16:25:24 +01:00
parent ff229ab05a
commit 6dbc34e16e
16 changed files with 119 additions and 6 deletions
+5
View File
@@ -174,6 +174,11 @@ string AsmPrinter::operator()(assembly::FunctionCall const& _functionCall)
")";
}
string AsmPrinter::operator()(If const& _if)
{
return "if " + boost::apply_visitor(*this, *_if.condition) + "\n" + (*this)(_if.body);
}
string AsmPrinter::operator()(Switch const& _switch)
{
string out = "switch " + boost::apply_visitor(*this, *_switch.expression);