aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmPrinter.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-27 06:58:08 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-05 21:21:25 +0800
commitc423e140eeccaa07ca8c461e86157a4d9dbb1195 (patch)
treed1268f462470818263586486c216ee1fe004eb1d /libsolidity/inlineasm/AsmPrinter.h
parentf1dbc772727031a93a5fc35d0b42a60393b0fb77 (diff)
downloaddexon-solidity-c423e140eeccaa07ca8c461e86157a4d9dbb1195.tar.gz
dexon-solidity-c423e140eeccaa07ca8c461e86157a4d9dbb1195.tar.zst
dexon-solidity-c423e140eeccaa07ca8c461e86157a4d9dbb1195.zip
Add flag for JULIA printing
Diffstat (limited to 'libsolidity/inlineasm/AsmPrinter.h')
-rw-r--r--libsolidity/inlineasm/AsmPrinter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsolidity/inlineasm/AsmPrinter.h b/libsolidity/inlineasm/AsmPrinter.h
index a7a1de0a..038c6d85 100644
--- a/libsolidity/inlineasm/AsmPrinter.h
+++ b/libsolidity/inlineasm/AsmPrinter.h
@@ -45,6 +45,8 @@ struct Block;
class AsmPrinter: public boost::static_visitor<std::string>
{
public:
+ explicit AsmPrinter(bool _julia = false): m_julia(_julia) {}
+
std::string operator()(assembly::Instruction const& _instruction);
std::string operator()(assembly::Literal const& _literal);
std::string operator()(assembly::Identifier const& _identifier);
@@ -56,6 +58,9 @@ public:
std::string operator()(assembly::FunctionDefinition const& _functionDefinition);
std::string operator()(assembly::FunctionCall const& _functionCall);
std::string operator()(assembly::Block const& _block);
+
+private:
+ bool m_julia = false;
};
}