Sol->Yul: Add cleanup to operations.

This commit is contained in:
Daniel Kirchner
2020-05-05 13:06:01 +02:00
parent dfd9008214
commit 7ad319687d
3 changed files with 47 additions and 20 deletions
@@ -112,7 +112,8 @@ 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);
/// If @a _forceCleanup is set to true, it also cleans the value, in case it already has type @a _to.
std::string expressionAsType(Expression const& _expression, Type const& _to, bool _forceCleanup = false);
/// @returns an output stream that can be used to define @a _var using a function call or
/// single stack slot expression.