Introduce assemblyString

This commit is contained in:
Alex Beregszaszi
2017-09-11 15:53:20 +01:00
parent 50570c6c79
commit bbfb16cf5c
10 changed files with 27 additions and 24 deletions
+2 -2
View File
@@ -60,9 +60,9 @@ public:
/// @returns Only the runtime object (without constructor).
eth::LinkerObject runtimeObject() const { return m_context.assembledRuntimeObject(m_runtimeSub); }
/// @arg _sourceCodes is the map of input files to source code strings
void assemblyStream(std::ostream& _stream, StringMap const& _sourceCodes = StringMap()) const
std::string assemblyString(StringMap const& _sourceCodes = StringMap()) const
{
m_context.assemblyStream(_stream, _sourceCodes);
return m_context.assemblyString(_sourceCodes);
}
/// @arg _sourceCodes is the map of input files to source code strings
Json::Value assemblyJSON(StringMap const& _sourceCodes = StringMap()) const
+2 -2
View File
@@ -209,9 +209,9 @@ public:
eth::Assembly& nonConstAssembly() { return *m_asm; }
/// @arg _sourceCodes is the map of input files to source code strings
void assemblyStream(std::ostream& _stream, StringMap const& _sourceCodes = StringMap()) const
std::string assemblyString(StringMap const& _sourceCodes = StringMap()) const
{
m_asm->assemblyStream(_stream, "", _sourceCodes);
return m_asm->assemblyString(_sourceCodes);
}
/// @arg _sourceCodes is the map of input files to source code strings