aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'Compiler.h')
-rw-r--r--Compiler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Compiler.h b/Compiler.h
index 28ab34ad..3ad2d8c6 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -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,