diff options
Diffstat (limited to 'Compiler.h')
-rw-r--r-- | Compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -26,6 +26,7 @@ #include <functional> #include <libsolidity/ASTVisitor.h> #include <libsolidity/CompilerContext.h> +#include <libevmcore/Assembly.h> namespace dev { namespace solidity { @@ -42,6 +43,11 @@ public: bytes getRuntimeBytecode() { return m_runtimeContext.getAssembledBytecode(m_optimize);} void streamAssembly(std::ostream& _stream) const { m_context.streamAssembly(_stream); } + /// @returns Assembly items of the normal compiler context + eth::AssemblyItems const& getAssemblyItems() const { return m_context.getAssembly().getItems(); } + /// @returns Assembly items of the runtime compiler context + eth::AssemblyItems const& getRuntimeAssemblyItems() const { return m_runtimeContext.getAssembly().getItems(); } + private: /// Registers the non-function objects inside the contract with the context. void initializeContext(ContractDefinition const& _contract, |