From 6332bff81d806b60131dbf87eddba75c88e9d42a Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 26 May 2015 11:27:59 +0200 Subject: Gas estimation for internal functions. --- Compiler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Compiler.h') diff --git a/Compiler.h b/Compiler.h index 106038d1..13b8639d 100644 --- a/Compiler.h +++ b/Compiler.h @@ -52,6 +52,10 @@ public: /// @returns Assembly items of the runtime compiler context eth::AssemblyItems const& getRuntimeAssemblyItems() const { return m_runtimeContext.getAssembly().getItems(); } + /// @returns the entry label of the given function. Might return an AssemblyItem of type + /// UndefinedItem if it does not exist yet. + eth::AssemblyItem getFunctionEntryLabel(FunctionDefinition const& _function) const; + private: /// Registers the non-function objects inside the contract with the context. void initializeContext(ContractDefinition const& _contract, -- cgit v1.2.3