diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-23 00:40:22 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-29 04:46:16 +0800 |
commit | 3cc04923015cc3f40ad285fba5ed71464bd9ff2a (patch) | |
tree | 5d32036c4a1aa893348af4e907f8b1453bd4b3e3 /CompilerContext.cpp | |
parent | 9759eec2da1d75c70b8cd3eff3fe1bffade6854d (diff) | |
download | dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.gz dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.bz2 dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.lz dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.xz dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.zst dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.zip |
Work in progress for state variable accessors
- Changed the code so that a generic declaration with the combination of
a function type can be used wherer a function definition was used
before
- Since using an std::pair everywhere is really tiring with this commit
I am in the process of abstracting it into a function
Diffstat (limited to 'CompilerContext.cpp')
-rw-r--r-- | CompilerContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CompilerContext.cpp b/CompilerContext.cpp index ad1877ba..4edced94 100644 --- a/CompilerContext.cpp +++ b/CompilerContext.cpp @@ -83,9 +83,9 @@ bool CompilerContext::isLocalVariable(Declaration const* _declaration) const return m_localVariables.count(_declaration); } -eth::AssemblyItem CompilerContext::getFunctionEntryLabel(FunctionDefinition const& _function) const +eth::AssemblyItem CompilerContext::getFunctionEntryLabel(Declaration const& _declaration) const { - auto res = m_functionEntryLabels.find(&_function); + auto res = m_functionEntryLabels.find(&_declaration); solAssert(res != m_functionEntryLabels.end(), "Function entry label not found."); return res->second.tag(); } |