aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/AsmPrinter.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-13 19:56:53 +0800
committerchriseth <chris@ethereum.org>2018-12-13 20:00:59 +0800
commit6101258248567b0e670a1fc9226159d7f6687eef (patch)
treefdae75b9db8cad0226392fb50e9491f3be88f45e /libyul/AsmPrinter.h
parent642c69f935c41d70f0dcfb0e89fcf3e626f7b38f (diff)
downloaddexon-solidity-6101258248567b0e670a1fc9226159d7f6687eef.tar.gz
dexon-solidity-6101258248567b0e670a1fc9226159d7f6687eef.tar.zst
dexon-solidity-6101258248567b0e670a1fc9226159d7f6687eef.zip
AsmPrinter functions should be const.
Diffstat (limited to 'libyul/AsmPrinter.h')
-rw-r--r--libyul/AsmPrinter.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/libyul/AsmPrinter.h b/libyul/AsmPrinter.h
index 61dfc18c..a1b9d6cd 100644
--- a/libyul/AsmPrinter.h
+++ b/libyul/AsmPrinter.h
@@ -36,21 +36,21 @@ class AsmPrinter: public boost::static_visitor<std::string>
public:
explicit AsmPrinter(bool _yul = false): m_yul(_yul) {}
- std::string operator()(Instruction const& _instruction);
- std::string operator()(Literal const& _literal);
- std::string operator()(Identifier const& _identifier);
- std::string operator()(FunctionalInstruction const& _functionalInstruction);
- std::string operator()(ExpressionStatement const& _expr);
- std::string operator()(Label const& _label);
- std::string operator()(StackAssignment const& _assignment);
- std::string operator()(Assignment const& _assignment);
- std::string operator()(VariableDeclaration const& _variableDeclaration);
- std::string operator()(FunctionDefinition const& _functionDefinition);
- std::string operator()(FunctionCall const& _functionCall);
- std::string operator()(If const& _if);
- std::string operator()(Switch const& _switch);
- std::string operator()(ForLoop const& _forLoop);
- std::string operator()(Block const& _block);
+ std::string operator()(Instruction const& _instruction) const;
+ std::string operator()(Literal const& _literal) const;
+ std::string operator()(Identifier const& _identifier) const;
+ std::string operator()(FunctionalInstruction const& _functionalInstruction) const;
+ std::string operator()(ExpressionStatement const& _expr) const;
+ std::string operator()(Label const& _label) const;
+ std::string operator()(StackAssignment const& _assignment) const;
+ std::string operator()(Assignment const& _assignment) const;
+ std::string operator()(VariableDeclaration const& _variableDeclaration) const;
+ std::string operator()(FunctionDefinition const& _functionDefinition) const;
+ std::string operator()(FunctionCall const& _functionCall) const;
+ std::string operator()(If const& _if) const;
+ std::string operator()(Switch const& _switch) const;
+ std::string operator()(ForLoop const& _forLoop) const;
+ std::string operator()(Block const& _block) const;
private:
std::string formatTypedName(TypedName _variable) const;