diff options
author | chriseth <chris@ethereum.org> | 2019-01-16 18:44:11 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2019-01-18 03:36:48 +0800 |
commit | 29f6aa7d560a7d82a9088489e663a079a3b41f73 (patch) | |
tree | 2ef2c682489bc68f16d600d06643f1f39ec12105 /libsolidity/codegen/Compiler.cpp | |
parent | a9fa2658d8690f18aa14c599a305cf59a5cd4e3c (diff) | |
download | dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.tar.gz dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.tar.zst dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.zip |
Do not create a copy of the assembly.
Diffstat (limited to 'libsolidity/codegen/Compiler.cpp')
-rw-r--r-- | libsolidity/codegen/Compiler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/codegen/Compiler.cpp b/libsolidity/codegen/Compiler.cpp index f0eaca4f..72efed33 100644 --- a/libsolidity/codegen/Compiler.cpp +++ b/libsolidity/codegen/Compiler.cpp @@ -47,6 +47,12 @@ void Compiler::compileContract( m_context.optimise(m_optimize, m_optimizeRuns); } +std::shared_ptr<eth::Assembly> Compiler::runtimeAssemblyPtr() const +{ + solAssert(m_context.runtimeContext(), ""); + return m_context.runtimeContext()->assemblyPtr(); +} + eth::AssemblyItem Compiler::functionEntryLabel(FunctionDefinition const& _function) const { return m_runtimeContext.functionEntryLabelIfExists(_function); |