diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-17 08:14:15 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 17:51:46 +0800 |
commit | e2cfc9ee92158169b5dd058074f25d67959e9875 (patch) | |
tree | 90cb281b48f95bdcc9904ed12def22bffcb88fb7 /libsolidity/codegen/Compiler.h | |
parent | c94b1f81730c27480cb5813a7a909511613c14c5 (diff) | |
download | dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.tar.gz dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.tar.zst dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.zip |
Mark a lot of functions const (where possible)
Diffstat (limited to 'libsolidity/codegen/Compiler.h')
-rw-r--r-- | libsolidity/codegen/Compiler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/codegen/Compiler.h b/libsolidity/codegen/Compiler.h index eef078c1..8c63ea9c 100644 --- a/libsolidity/codegen/Compiler.h +++ b/libsolidity/codegen/Compiler.h @@ -51,9 +51,9 @@ public: ContractDefinition const& _contract, std::map<ContractDefinition const*, eth::Assembly const*> const& _contracts ); - eth::Assembly const& assembly() { return m_context.assembly(); } - eth::LinkerObject assembledObject() { return m_context.assembledObject(); } - eth::LinkerObject runtimeObject() { return m_context.assembledRuntimeObject(m_runtimeSub); } + eth::Assembly const& assembly() const { return m_context.assembly(); } + eth::LinkerObject assembledObject() const { return m_context.assembledObject(); } + eth::LinkerObject runtimeObject() const { return m_context.assembledRuntimeObject(m_runtimeSub); } /// @arg _sourceCodes is the map of input files to source code strings /// @arg _inJsonFromat shows whether the out should be in Json format Json::Value streamAssembly(std::ostream& _stream, StringMap const& _sourceCodes = StringMap(), bool _inJsonFormat = false) const |