Adding additional interface to yul function collector.

This commit is contained in:
Djordje Mijovic
2021-03-15 20:27:16 +01:00
parent ccd9de137a
commit 49fcda7048
3 changed files with 45 additions and 12 deletions
@@ -41,6 +41,11 @@ public:
/// cases.
std::string createFunction(std::string const& _name, std::function<std::string()> const& _creator);
std::string createFunction(
std::string const& _name,
std::function<std::string(std::vector<std::string>&, std::vector<std::string>&)> const& _creator
);
/// @returns concatenation of all generated functions.
/// Guarantees that the order of functions in the generated code is deterministic and
/// platform-independent.