mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	CompilerStack: assemblyString doesn't need to receive sourceCodes map as copy.
This commit is contained in:
		
							parent
							
								
									722c878ccc
								
							
						
					
					
						commit
						30588a90eb
					
				| @ -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.")); | ||||
|  | ||||
| @ -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
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user