Rename Julia to Yul in variables

This commit is contained in:
Alex Beregszaszi 2018-06-19 17:04:42 +02:00
parent 8fa8b2d08e
commit e05a31b82b
3 changed files with 12 additions and 12 deletions

View File

@ -331,7 +331,7 @@ void CodeTransform::operator()(FunctionDefinition const& _function)
CodeTransform(
m_assembly,
m_info,
m_julia,
m_yul,
m_evm15,
m_identifierAccess,
m_useNamedLabelsForFunctions,

View File

@ -49,14 +49,14 @@ public:
CodeTransform(
julia::AbstractAssembly& _assembly,
solidity::assembly::AsmAnalysisInfo& _analysisInfo,
bool _julia = false,
bool _yul = false,
bool _evm15 = false,
ExternalIdentifierAccess const& _identifierAccess = ExternalIdentifierAccess(),
bool _useNamedLabelsForFunctions = false
): CodeTransform(
_assembly,
_analysisInfo,
_julia,
_yul,
_evm15,
_identifierAccess,
_useNamedLabelsForFunctions,
@ -78,7 +78,7 @@ protected:
CodeTransform(
julia::AbstractAssembly& _assembly,
solidity::assembly::AsmAnalysisInfo& _analysisInfo,
bool _julia,
bool _yul,
bool _evm15,
ExternalIdentifierAccess const& _identifierAccess,
bool _useNamedLabelsForFunctions,
@ -87,7 +87,7 @@ protected:
):
m_assembly(_assembly),
m_info(_analysisInfo),
m_julia(_julia),
m_yul(_yul),
m_evm15(_evm15),
m_useNamedLabelsForFunctions(_useNamedLabelsForFunctions),
m_identifierAccess(_identifierAccess),
@ -142,7 +142,7 @@ private:
julia::AbstractAssembly& m_assembly;
solidity::assembly::AsmAnalysisInfo& m_info;
solidity::assembly::Scope* m_scope = nullptr;
bool m_julia = false;
bool m_yul = false;
bool m_evm15 = false;
bool m_useNamedLabelsForFunctions = false;
ExternalIdentifierAccess m_identifierAccess;

View File

@ -55,19 +55,19 @@ string inlinableFunctions(string const& _source)
);
}
string inlineFunctions(string const& _source, bool _julia = true)
string inlineFunctions(string const& _source, bool _yul = true)
{
auto ast = disambiguate(_source, _julia);
auto ast = disambiguate(_source, _yul);
ExpressionInliner(ast).run();
return assembly::AsmPrinter(_julia)(ast);
return assembly::AsmPrinter(_yul)(ast);
}
string fullInline(string const& _source, bool _julia = true)
string fullInline(string const& _source, bool _yul = true)
{
Block ast = disambiguate(_source, _julia);
Block ast = disambiguate(_source, _yul);
(FunctionHoister{})(ast);
(FunctionGrouper{})(ast);\
FullInliner(ast).run();
return assembly::AsmPrinter(_julia)(ast);
return assembly::AsmPrinter(_yul)(ast);
}
}