| 190 | } |
| 191 | |
| 192 | void CompilerContext::appendYulUtilityFunctions(OptimiserSettings const& _optimiserSettings) |
| 193 | { |
| 194 | solAssert(!m_appendYulUtilityFunctionsRan, "requestedYulFunctions called more than once."); |
| 195 | m_appendYulUtilityFunctionsRan = true; |
| 196 | |
| 197 | std::string code = m_yulFunctionCollector.requestedFunctions(); |
| 198 | if (!code.empty()) |
| 199 | { |
| 200 | appendInlineAssembly( |
| 201 | yul::reindent("{\n" + std::move(code) + "\n}"), |
| 202 | {}, |
| 203 | m_externallyUsedYulFunctions, |
| 204 | true, |
| 205 | _optimiserSettings, |
| 206 | yulUtilityFileName() |
| 207 | ); |
| 208 | solAssert(!m_generatedYulUtilityCode.empty(), ""); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | void CompilerContext::addVariable( |
| 213 | VariableDeclaration const& _declaration, |
no test coverage detected