aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/Compiler.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-15 17:22:47 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-11 22:48:52 +0800
commita535a8b06ed1b9c0c5fd41805a4fe39939755f05 (patch)
tree94484019deeef72cc1bab99de51b844647ec6881 /libsolidity/codegen/Compiler.h
parent55d2a459a9193024930101c79bbf48af2eb39e2d (diff)
downloaddexon-solidity-a535a8b06ed1b9c0c5fd41805a4fe39939755f05.tar.gz
dexon-solidity-a535a8b06ed1b9c0c5fd41805a4fe39939755f05.tar.zst
dexon-solidity-a535a8b06ed1b9c0c5fd41805a4fe39939755f05.zip
Split out the JSON functionality from assembly.stream()
Diffstat (limited to 'libsolidity/codegen/Compiler.h')
-rw-r--r--libsolidity/codegen/Compiler.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libsolidity/codegen/Compiler.h b/libsolidity/codegen/Compiler.h
index c6ee93fb..1224ff60 100644
--- a/libsolidity/codegen/Compiler.h
+++ b/libsolidity/codegen/Compiler.h
@@ -60,10 +60,14 @@ 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
- /// @arg _inJsonFromat shows whether the out should be in Json format
- Json::Value streamAssembly(std::ostream& _stream, StringMap const& _sourceCodes = StringMap(), bool _inJsonFormat = false) const
+ std::ostream& assemblyStream(std::ostream& _stream, StringMap const& _sourceCodes = StringMap()) const
{
- return m_context.streamAssembly(_stream, _sourceCodes, _inJsonFormat);
+ return m_context.assemblyStream(_stream, _sourceCodes);
+ }
+ /// @arg _sourceCodes is the map of input files to source code strings
+ Json::Value assemblyJSON(StringMap const& _sourceCodes = StringMap()) const
+ {
+ return m_context.assemblyJSON(_sourceCodes);
}
/// @returns Assembly items of the normal compiler context
eth::AssemblyItems const& assemblyItems() const { return m_context.assembly().items(); }