From 50570c6c794eee01af64751c884fb6cb68f8dffc Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 30 Aug 2017 01:58:19 +0100 Subject: Do not return the stream in asssemblyStream --- libevmasm/Assembly.cpp | 4 +--- libevmasm/Assembly.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'libevmasm') diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index a07226ca..2203cadf 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -181,7 +181,7 @@ private: } -ostream& Assembly::assemblyStream(ostream& _out, string const& _prefix, StringMap const& _sourceCodes) const +void Assembly::assemblyStream(ostream& _out, string const& _prefix, StringMap const& _sourceCodes) const { Functionalizer f(_out, _prefix, _sourceCodes); @@ -206,8 +206,6 @@ ostream& Assembly::assemblyStream(ostream& _out, string const& _prefix, StringMa if (m_auxiliaryData.size() > 0) _out << endl << _prefix << "auxdata: 0x" << toHex(m_auxiliaryData) << endl; - - return _out; } Json::Value Assembly::createJsonValue(string _name, int _begin, int _end, string _value, string _jumpType) diff --git a/libevmasm/Assembly.h b/libevmasm/Assembly.h index ab8f174d..b7e9b354 100644 --- a/libevmasm/Assembly.h +++ b/libevmasm/Assembly.h @@ -121,7 +121,7 @@ public: Assembly& optimise(bool _enable, bool _isCreation = true, size_t _runs = 200); /// Create a text representation of the assembly. - std::ostream& assemblyStream( + void assemblyStream( std::ostream& _out, std::string const& _prefix = "", StringMap const& _sourceCodes = StringMap() -- cgit