diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-13 01:37:39 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-14 16:31:28 +0800 |
commit | e0d95a66411834537f4a50ec86617a12e839d769 (patch) | |
tree | 885597e88d6d101dbd24daca5e3c68d308629e3f | |
parent | 782bc41dbd34a3ed2c5c7074647f039f7a974cdf (diff) | |
download | dexon-solidity-e0d95a66411834537f4a50ec86617a12e839d769.tar dexon-solidity-e0d95a66411834537f4a50ec86617a12e839d769.tar.gz dexon-solidity-e0d95a66411834537f4a50ec86617a12e839d769.tar.bz2 dexon-solidity-e0d95a66411834537f4a50ec86617a12e839d769.tar.lz dexon-solidity-e0d95a66411834537f4a50ec86617a12e839d769.tar.xz dexon-solidity-e0d95a66411834537f4a50ec86617a12e839d769.tar.zst dexon-solidity-e0d95a66411834537f4a50ec86617a12e839d769.zip |
Rename internal variable
-rw-r--r-- | libsolidity/inlineasm/AsmPrinter.cpp | 10 | ||||
-rw-r--r-- | libsolidity/inlineasm/AsmPrinter.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libsolidity/inlineasm/AsmPrinter.cpp b/libsolidity/inlineasm/AsmPrinter.cpp index bacd7a94..1a15d7eb 100644 --- a/libsolidity/inlineasm/AsmPrinter.cpp +++ b/libsolidity/inlineasm/AsmPrinter.cpp @@ -40,7 +40,7 @@ using namespace dev::solidity::assembly; string AsmPrinter::operator()(assembly::Instruction const& _instruction) { - solAssert(!m_julia, ""); + solAssert(!m_yul, ""); return boost::to_lower_copy(instructionInfo(_instruction.instruction).name); } @@ -92,7 +92,7 @@ string AsmPrinter::operator()(assembly::Identifier const& _identifier) string AsmPrinter::operator()(assembly::FunctionalInstruction const& _functionalInstruction) { - solAssert(!m_julia, ""); + solAssert(!m_yul, ""); return boost::to_lower_copy(instructionInfo(_functionalInstruction.instruction).name) + "(" + @@ -109,13 +109,13 @@ string AsmPrinter::operator()(ExpressionStatement const& _statement) string AsmPrinter::operator()(assembly::Label const& _label) { - solAssert(!m_julia, ""); + solAssert(!m_yul, ""); return _label.name + ":"; } string AsmPrinter::operator()(assembly::StackAssignment const& _assignment) { - solAssert(!m_julia, ""); + solAssert(!m_yul, ""); return "=: " + (*this)(_assignment.variableName); } @@ -225,7 +225,7 @@ string AsmPrinter::operator()(Block const& _block) string AsmPrinter::appendTypeName(std::string const& _type) const { - if (m_julia) + if (m_yul) return ":" + _type; return ""; } diff --git a/libsolidity/inlineasm/AsmPrinter.h b/libsolidity/inlineasm/AsmPrinter.h index 5bd87aba..9f2b842a 100644 --- a/libsolidity/inlineasm/AsmPrinter.h +++ b/libsolidity/inlineasm/AsmPrinter.h @@ -36,7 +36,7 @@ namespace assembly class AsmPrinter: public boost::static_visitor<std::string> { public: - explicit AsmPrinter(bool _julia = false): m_julia(_julia) {} + explicit AsmPrinter(bool _yul = false): m_yul(_yul) {} std::string operator()(assembly::Instruction const& _instruction); std::string operator()(assembly::Literal const& _literal); @@ -57,7 +57,7 @@ public: private: std::string appendTypeName(std::string const& _type) const; - bool m_julia = false; + bool m_yul = false; }; } |