diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-19 23:04:42 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-26 06:52:36 +0800 |
commit | e05a31b82bd7781b995253cf78104412543a9696 (patch) | |
tree | d93cfcc5d4544d85dc63478f4d1b6cecb89bcc7e | |
parent | 8fa8b2d08ee09f58fe94a11b7101a9a6873c622e (diff) | |
download | dexon-solidity-e05a31b82bd7781b995253cf78104412543a9696.tar dexon-solidity-e05a31b82bd7781b995253cf78104412543a9696.tar.gz dexon-solidity-e05a31b82bd7781b995253cf78104412543a9696.tar.bz2 dexon-solidity-e05a31b82bd7781b995253cf78104412543a9696.tar.lz dexon-solidity-e05a31b82bd7781b995253cf78104412543a9696.tar.xz dexon-solidity-e05a31b82bd7781b995253cf78104412543a9696.tar.zst dexon-solidity-e05a31b82bd7781b995253cf78104412543a9696.zip |
Rename Julia to Yul in variables
-rw-r--r-- | libjulia/backends/evm/EVMCodeTransform.cpp | 2 | ||||
-rw-r--r-- | libjulia/backends/evm/EVMCodeTransform.h | 10 | ||||
-rw-r--r-- | test/libjulia/Inliner.cpp | 12 |
3 files changed, 12 insertions, 12 deletions
diff --git a/libjulia/backends/evm/EVMCodeTransform.cpp b/libjulia/backends/evm/EVMCodeTransform.cpp index b7614500..ba2d7f75 100644 --- a/libjulia/backends/evm/EVMCodeTransform.cpp +++ b/libjulia/backends/evm/EVMCodeTransform.cpp @@ -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, diff --git a/libjulia/backends/evm/EVMCodeTransform.h b/libjulia/backends/evm/EVMCodeTransform.h index 96b97d9a..ed0785d3 100644 --- a/libjulia/backends/evm/EVMCodeTransform.h +++ b/libjulia/backends/evm/EVMCodeTransform.h @@ -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; diff --git a/test/libjulia/Inliner.cpp b/test/libjulia/Inliner.cpp index 51676042..2f5b7cff 100644 --- a/test/libjulia/Inliner.cpp +++ b/test/libjulia/Inliner.cpp @@ -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); } } |