mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Simplify generated names.
This commit is contained in:
parent
fc0e571a07
commit
54cf56b3a5
@ -93,7 +93,7 @@ string IRNames::constantValueFunction(VariableDeclaration const& _constant)
|
|||||||
|
|
||||||
string IRNames::localVariable(VariableDeclaration const& _declaration)
|
string IRNames::localVariable(VariableDeclaration const& _declaration)
|
||||||
{
|
{
|
||||||
return "vloc_" + _declaration.name() + '_' + std::to_string(_declaration.id());
|
return "var_" + _declaration.name() + '_' + std::to_string(_declaration.id());
|
||||||
}
|
}
|
||||||
|
|
||||||
string IRNames::localVariable(Expression const& _expression)
|
string IRNames::localVariable(Expression const& _expression)
|
||||||
@ -117,7 +117,7 @@ string IRNames::tupleComponent(size_t _i)
|
|||||||
|
|
||||||
string IRNames::zeroValue(Type const& _type, string const& _variableName)
|
string IRNames::zeroValue(Type const& _type, string const& _variableName)
|
||||||
{
|
{
|
||||||
return "zero_value_for_type_" + _type.identifier() + _variableName;
|
return "zero_" + _type.identifier() + _variableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
FunctionDefinition const* IRHelpers::referencedFunctionDeclaration(Expression const& _expression)
|
FunctionDefinition const* IRHelpers::referencedFunctionDeclaration(Expression const& _expression)
|
||||||
|
Loading…
Reference in New Issue
Block a user