IR Codegen: Small refactoring & comment fixes

This commit is contained in:
Mathias Baumann
2021-06-14 13:35:53 +02:00
parent b016302d49
commit d7d64c3db5
4 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ YulArity YulArity::fromType(FunctionType const& _functionType)
string IRNames::function(FunctionDefinition const& _function)
{
if (_function.isConstructor())
return implicitConstructor(*_function.annotation().contract);
return constructor(*_function.annotation().contract);
return "fun_" + _function.name() + "_" + to_string(_function.id());
}
@@ -78,7 +78,7 @@ string IRNames::internalDispatch(YulArity const& _arity)
"_out_" + to_string(_arity.out);
}
string IRNames::implicitConstructor(ContractDefinition const& _contract)
string IRNames::constructor(ContractDefinition const& _contract)
{
return "constructor_" + _contract.name() + "_" + to_string(_contract.id());
}