aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/CompilerStack.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-01 20:28:32 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-01 20:44:08 +0800
commit998ca552b8966d67bbbc7482e972563efade9a80 (patch)
treec45c41ac4eef9838317f0b34bab24394bd9e2f3a /libsolidity/interface/CompilerStack.h
parentc212d7c2e6b16063191d85471871eeddf0e6510d (diff)
downloaddexon-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.h7
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;