From c423e140eeccaa07ca8c461e86157a4d9dbb1195 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 26 Apr 2017 23:58:08 +0100 Subject: Add flag for JULIA printing --- libsolidity/inlineasm/AsmPrinter.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libsolidity/inlineasm/AsmPrinter.h') 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 { 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; }; } -- cgit