Rename IRGenerationContext::internalDispatch() to generateInternalDispatchFunction()

This commit is contained in:
Kamil Śliwak 2020-05-14 15:57:46 +02:00
parent 30278c4b88
commit 7d2292fbaf
3 changed files with 4 additions and 4 deletions

View File

@ -121,7 +121,7 @@ string IRGenerationContext::newYulVariable()
return "_" + to_string(++m_varCounter); return "_" + to_string(++m_varCounter);
} }
string IRGenerationContext::internalDispatch(YulArity const& _arity) string IRGenerationContext::generateInternalDispatchFunction(YulArity const& _arity)
{ {
string funName = "dispatch_internal_in_" + to_string(_arity.in) + "_out_" + to_string(_arity.out); string funName = "dispatch_internal_in_" + to_string(_arity.in) + "_out_" + to_string(_arity.out);
return m_functions.createFunction(funName, [&]() { return m_functions.createFunction(funName, [&]() {

View File

@ -102,7 +102,7 @@ public:
std::string newYulVariable(); std::string newYulVariable();
std::string internalDispatch(YulArity const& _arity); std::string generateInternalDispatchFunction(YulArity const& _arity);
/// @returns a new copy of the utility function generator (but using the same function set). /// @returns a new copy of the utility function generator (but using the same function set).
YulUtilFunctions utils(); YulUtilFunctions utils();

View File

@ -695,8 +695,8 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
{ {
YulArity arity = YulArity::fromType(*functionType); YulArity arity = YulArity::fromType(*functionType);
define(_functionCall) << define(_functionCall) <<
// NOTE: internalDispatch() takes care of adding the function to function generation queue // NOTE: generateInternalDispatchFunction() takes care of adding the function to function generation queue
m_context.internalDispatch(arity) << m_context.generateInternalDispatchFunction(arity) <<
"(" << "(" <<
IRVariable(_functionCall.expression()).part("functionIdentifier").name() << IRVariable(_functionCall.expression()).part("functionIdentifier").name() <<
joinHumanReadablePrefixed(args) << joinHumanReadablePrefixed(args) <<