CompilerStack: assemblyString doesn't need to receive sourceCodes map as copy.

This commit is contained in:
Christian Parpart 2021-03-17 12:13:57 +01:00
parent 722c878ccc
commit 30588a90eb
2 changed files with 2 additions and 2 deletions

View File

@ -889,7 +889,7 @@ evmasm::LinkerObject const& CompilerStack::runtimeObject(string const& _contract
}
/// TODO: cache this string
string CompilerStack::assemblyString(string const& _contractName, StringMap _sourceCodes) const
string CompilerStack::assemblyString(string const& _contractName, StringMap const& _sourceCodes) const
{
if (m_stackState != CompilationSuccessful)
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Compilation was not successful."));

View File

@ -312,7 +312,7 @@ public:
/// @return a verbose text representation of the assembly.
/// @arg _sourceCodes is the map of input files to source code strings
/// Prerequisite: Successful compilation.
std::string assemblyString(std::string const& _contractName, StringMap _sourceCodes = StringMap()) const;
std::string assemblyString(std::string const& _contractName, StringMap const& _sourceCodes = StringMap()) const;
/// @returns a JSON representation of the assembly.
/// @arg _sourceCodes is the map of input files to source code strings