diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-30 08:58:19 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-11 22:48:58 +0800 |
commit | 50570c6c794eee01af64751c884fb6cb68f8dffc (patch) | |
tree | 5ed3c757106ddba44ad2194c773ad70317c9272b /libsolidity/interface | |
parent | a535a8b06ed1b9c0c5fd41805a4fe39939755f05 (diff) | |
download | dexon-solidity-50570c6c794eee01af64751c884fb6cb68f8dffc.tar dexon-solidity-50570c6c794eee01af64751c884fb6cb68f8dffc.tar.gz dexon-solidity-50570c6c794eee01af64751c884fb6cb68f8dffc.tar.bz2 dexon-solidity-50570c6c794eee01af64751c884fb6cb68f8dffc.tar.lz dexon-solidity-50570c6c794eee01af64751c884fb6cb68f8dffc.tar.xz dexon-solidity-50570c6c794eee01af64751c884fb6cb68f8dffc.tar.zst dexon-solidity-50570c6c794eee01af64751c884fb6cb68f8dffc.zip |
Do not return the stream in asssemblyStream
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 5 | ||||
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 4002bac3..5f62bb03 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -347,15 +347,14 @@ eth::LinkerObject const& CompilerStack::cloneObject(string const& _contractName) return contract(_contractName).cloneObject; } -ostream& CompilerStack::assemblyStream(ostream& _outStream, string const& _contractName, StringMap _sourceCodes) const +void CompilerStack::assemblyStream(ostream& _outStream, string const& _contractName, StringMap _sourceCodes) const { Contract const& currentContract = contract(_contractName); if (currentContract.compiler) - return currentContract.compiler->assemblyStream(_outStream, _sourceCodes); + currentContract.compiler->assemblyStream(_outStream, _sourceCodes); else { _outStream << "Contract not fully implemented" << endl; - return _outStream; } } diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index 207778f0..2f1b9bb3 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -193,7 +193,7 @@ public: /// Streams a verbose version of the assembly to @a _outStream. /// @arg _sourceCodes is the map of input files to source code strings /// Prerequisite: Successful compilation. - std::ostream& assemblyStream(std::ostream& _outStream, std::string const& _contractName = "", StringMap _sourceCodes = StringMap()) const; + void assemblyStream(std::ostream& _outStream, std::string const& _contractName = "", StringMap _sourceCodes = StringMap()) const; /// @returns a JSON representation of the assembly. /// @arg _sourceCodes is the map of input files to source code strings |