mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename internal variable
This commit is contained in:
parent
782bc41dbd
commit
e0d95a6641
@ -40,7 +40,7 @@ using namespace dev::solidity::assembly;
|
|||||||
|
|
||||||
string AsmPrinter::operator()(assembly::Instruction const& _instruction)
|
string AsmPrinter::operator()(assembly::Instruction const& _instruction)
|
||||||
{
|
{
|
||||||
solAssert(!m_julia, "");
|
solAssert(!m_yul, "");
|
||||||
return boost::to_lower_copy(instructionInfo(_instruction.instruction).name);
|
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)
|
string AsmPrinter::operator()(assembly::FunctionalInstruction const& _functionalInstruction)
|
||||||
{
|
{
|
||||||
solAssert(!m_julia, "");
|
solAssert(!m_yul, "");
|
||||||
return
|
return
|
||||||
boost::to_lower_copy(instructionInfo(_functionalInstruction.instruction).name) +
|
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)
|
string AsmPrinter::operator()(assembly::Label const& _label)
|
||||||
{
|
{
|
||||||
solAssert(!m_julia, "");
|
solAssert(!m_yul, "");
|
||||||
return _label.name + ":";
|
return _label.name + ":";
|
||||||
}
|
}
|
||||||
|
|
||||||
string AsmPrinter::operator()(assembly::StackAssignment const& _assignment)
|
string AsmPrinter::operator()(assembly::StackAssignment const& _assignment)
|
||||||
{
|
{
|
||||||
solAssert(!m_julia, "");
|
solAssert(!m_yul, "");
|
||||||
return "=: " + (*this)(_assignment.variableName);
|
return "=: " + (*this)(_assignment.variableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ string AsmPrinter::operator()(Block const& _block)
|
|||||||
|
|
||||||
string AsmPrinter::appendTypeName(std::string const& _type) const
|
string AsmPrinter::appendTypeName(std::string const& _type) const
|
||||||
{
|
{
|
||||||
if (m_julia)
|
if (m_yul)
|
||||||
return ":" + _type;
|
return ":" + _type;
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ namespace assembly
|
|||||||
class AsmPrinter: public boost::static_visitor<std::string>
|
class AsmPrinter: public boost::static_visitor<std::string>
|
||||||
{
|
{
|
||||||
public:
|
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::Instruction const& _instruction);
|
||||||
std::string operator()(assembly::Literal const& _literal);
|
std::string operator()(assembly::Literal const& _literal);
|
||||||
@ -57,7 +57,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
std::string appendTypeName(std::string const& _type) const;
|
std::string appendTypeName(std::string const& _type) const;
|
||||||
|
|
||||||
bool m_julia = false;
|
bool m_yul = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user