aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-13 22:59:42 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-13 22:59:42 +0800
commit12e000e0d327ead61092c890d0e5a359a9b9a54d (patch)
tree0e2e54e42c7ceab279ff82351c244f40a344df10 /Compiler.h
parenta253abf0623aec5ebbf8fa8b4ec3b00596c724ee (diff)
downloaddexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.gz
dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.zst
dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.zip
A first version of Natspec warning popup
- Runtime Contract code hash can now be retrieved from the Compiler - Using the hash the Natspec handler stores and later retrieves Natspec JSON for a given contract.
Diffstat (limited to 'Compiler.h')
-rw-r--r--Compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Compiler.h b/Compiler.h
index e83d1ed3..c229a7a8 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -35,6 +35,7 @@ public:
void compileContract(ContractDefinition const& _contract, std::vector<MagicVariableDeclaration const*> const& _magicGlobals,
std::map<ContractDefinition const*, bytes const*> const& _contracts);
bytes getAssembledBytecode() { return m_context.getAssembledBytecode(m_optimize); }
+ bytes getRuntimeBytecode() { return m_runtimeContext.getAssembledBytecode(m_optimize);}
void streamAssembly(std::ostream& _stream) const { m_context.streamAssembly(_stream); }
private:
@@ -70,6 +71,7 @@ private:
bool const m_optimize;
CompilerContext m_context;
+ CompilerContext m_runtimeContext;
std::vector<eth::AssemblyItem> m_breakTags; ///< tag to jump to for a "break" statement
std::vector<eth::AssemblyItem> m_continueTags; ///< tag to jump to for a "continue" statement
eth::AssemblyItem m_returnTag; ///< tag to jump to for a "return" statement