aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/Compiler.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2019-01-16 18:44:11 +0800
committerchriseth <chris@ethereum.org>2019-01-18 03:36:48 +0800
commit29f6aa7d560a7d82a9088489e663a079a3b41f73 (patch)
tree2ef2c682489bc68f16d600d06643f1f39ec12105 /libsolidity/codegen/Compiler.h
parenta9fa2658d8690f18aa14c599a305cf59a5cd4e3c (diff)
downloaddexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.tar
dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.tar.gz
dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.tar.bz2
dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.tar.lz
dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.tar.xz
dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.tar.zst
dexon-solidity-29f6aa7d560a7d82a9088489e663a079a3b41f73.zip
Do not create a copy of the assembly.
Diffstat (limited to 'libsolidity/codegen/Compiler.h')
-rw-r--r--libsolidity/codegen/Compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/codegen/Compiler.h b/libsolidity/codegen/Compiler.h
index 953267a4..c21de96d 100644
--- a/libsolidity/codegen/Compiler.h
+++ b/libsolidity/codegen/Compiler.h
@@ -50,8 +50,10 @@ public:
);
/// @returns Entire assembly.
eth::Assembly const& assembly() const { return m_context.assembly(); }
+ /// @returns Entire assembly as a shared pointer to non-const.
+ std::shared_ptr<eth::Assembly> assemblyPtr() const { return m_context.assemblyPtr(); }
/// @returns Runtime assembly.
- eth::Assembly const& runtimeAssembly() const { return m_context.assembly().sub(m_runtimeSub); }
+ std::shared_ptr<eth::Assembly> runtimeAssemblyPtr() const;
/// @returns The entire assembled object (with constructor).
eth::LinkerObject assembledObject() const { return m_context.assembledObject(); }
/// @returns Only the runtime object (without constructor).