aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-04-20 20:55:58 +0800
committerchriseth <c@ethdev.com>2015-04-20 20:55:58 +0800
commit7a467bbf07a3b7dd8a05c4205b636273d0ece341 (patch)
tree4ad992ea5b3608f960897ceefb644bff3815c2a7 /CompilerContext.h
parent2d69b269e9da0a8cab7ee4741e8442afa52feecb (diff)
parente4808305a17f43392e03e29546494d464c5f0895 (diff)
downloaddexon-solidity-7a467bbf07a3b7dd8a05c4205b636273d0ece341.tar.gz
dexon-solidity-7a467bbf07a3b7dd8a05c4205b636273d0ece341.tar.zst
dexon-solidity-7a467bbf07a3b7dd8a05c4205b636273d0ece341.zip
Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions
Conflicts: libsolidity/AST.cpp libsolidity/AST.h
Diffstat (limited to 'CompilerContext.h')
-rw-r--r--CompilerContext.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/CompilerContext.h b/CompilerContext.h
index 53d0a89a..34a3f97c 100644
--- a/CompilerContext.h
+++ b/CompilerContext.h
@@ -122,7 +122,11 @@ public:
eth::Assembly const& getAssembly() const { return m_asm; }
/// @arg _sourceCodes is the map of input files to source code strings
- void streamAssembly(std::ostream& _stream, StringMap const& _sourceCodes = StringMap()) const { m_asm.stream(_stream, "", _sourceCodes); }
+ /// @arg _inJsonFormat shows whether the out should be in Json format
+ void streamAssembly(std::ostream& _stream, StringMap const& _sourceCodes = StringMap(), bool _inJsonFormat = false) const
+ {
+ m_asm.stream(_stream, "", _sourceCodes, _inJsonFormat);
+ }
bytes getAssembledBytecode(bool _optimize = false) { return m_asm.optimise(_optimize).assemble(); }