Helper function to define the value of expressions.

This commit is contained in:
chriseth
2019-04-30 13:10:37 +02:00
parent 0eef51ffa4
commit e66ab6c036
2 changed files with 14 additions and 23 deletions
@@ -60,6 +60,7 @@ private:
/// @returns a Yul expression representing the current value of @a _expression,
/// converted to type @a _to if it does not yet have that type.
std::string expressionAsType(Expression const& _expression, Type const& _to);
std::ostream& defineExpression(Expression const& _expression);
std::ostringstream m_code;
IRGenerationContext& m_context;