diff options
author | Christian <c@ethdev.com> | 2014-10-31 01:15:25 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-31 04:21:25 +0800 |
commit | cb9cb48dc78240717cd4842e75c9314778ebcb10 (patch) | |
tree | 1da710c3f44a0b6d2c7735b23a9da006ad016ec3 /CompilerContext.h | |
parent | a5f360273896973a99ad696a427726da875d0473 (diff) | |
download | dexon-solidity-cb9cb48dc78240717cd4842e75c9314778ebcb10.tar.gz dexon-solidity-cb9cb48dc78240717cd4842e75c9314778ebcb10.tar.zst dexon-solidity-cb9cb48dc78240717cd4842e75c9314778ebcb10.zip |
Function selector and variable (un)packing.
Diffstat (limited to 'CompilerContext.h')
-rw-r--r-- | CompilerContext.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CompilerContext.h b/CompilerContext.h index 90367903..cce5838e 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -22,6 +22,7 @@ #pragma once +#include <ostream> #include <libevmface/Instruction.h> #include <liblll/Assembly.h> #include <libsolidity/Types.h> @@ -69,7 +70,8 @@ public: CompilerContext& operator<<(u256 const& _value) { m_asm.append(_value); return *this; } CompilerContext& operator<<(bytes const& _data) { m_asm.append(_data); return *this; } - bytes getAssembledBytecode() { return m_asm.assemble(); } + void streamAssembly(std::ostream& _stream) const { _stream << m_asm; } + bytes getAssembledBytecode() const { return m_asm.assemble(); } private: eth::Assembly m_asm; |