diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-01 20:28:32 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-01 20:44:08 +0800 |
commit | 998ca552b8966d67bbbc7482e972563efade9a80 (patch) | |
tree | c45c41ac4eef9838317f0b34bab24394bd9e2f3a /libsolidity/interface/CompilerStack.h | |
parent | c212d7c2e6b16063191d85471871eeddf0e6510d (diff) | |
download | dexon-solidity-998ca552b8966d67bbbc7482e972563efade9a80.tar dexon-solidity-998ca552b8966d67bbbc7482e972563efade9a80.tar.gz dexon-solidity-998ca552b8966d67bbbc7482e972563efade9a80.tar.bz2 dexon-solidity-998ca552b8966d67bbbc7482e972563efade9a80.tar.lz dexon-solidity-998ca552b8966d67bbbc7482e972563efade9a80.tar.xz dexon-solidity-998ca552b8966d67bbbc7482e972563efade9a80.tar.zst dexon-solidity-998ca552b8966d67bbbc7482e972563efade9a80.zip |
Fix state after CompilerStack.reset()
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index d97b3960..bffdeabd 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -259,6 +259,13 @@ private: Json::Value const& contractABI(Contract const&) const; Json::Value const& natspec(Contract const&, DocumentationType _type) const; + /// @returns the offset of the entry point of the given function into the list of assembly items + /// or zero if it is not found or does not exist. + size_t functionEntryPoint( + std::string const& _contractName, + FunctionDefinition const& _function + ) const; + struct Remapping { std::string context; |