aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/Compiler.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-09-08 22:47:58 +0800
committerchriseth <c@ethdev.com>2015-09-08 22:47:58 +0800
commitea981cb0f5e5b131a56e420db97e944644ac95d6 (patch)
tree65c69f4586a48cc5e65c8ba5ded8848f02fd3b75 /libsolidity/Compiler.h
parent667921243b7d1188d76812958b50b34ae6f8cae5 (diff)
parentdf8c82bc60f4d9238635082f9a9f41a45b5e2b98 (diff)
downloaddexon-solidity-ea981cb0f5e5b131a56e420db97e944644ac95d6.tar
dexon-solidity-ea981cb0f5e5b131a56e420db97e944644ac95d6.tar.gz
dexon-solidity-ea981cb0f5e5b131a56e420db97e944644ac95d6.tar.bz2
dexon-solidity-ea981cb0f5e5b131a56e420db97e944644ac95d6.tar.lz
dexon-solidity-ea981cb0f5e5b131a56e420db97e944644ac95d6.tar.xz
dexon-solidity-ea981cb0f5e5b131a56e420db97e944644ac95d6.tar.zst
dexon-solidity-ea981cb0f5e5b131a56e420db97e944644ac95d6.zip
Merge pull request #41 from LianaHus/sol_rename_getters
solidity interface changes. removing get prefix
Diffstat (limited to 'libsolidity/Compiler.h')
-rw-r--r--libsolidity/Compiler.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libsolidity/Compiler.h b/libsolidity/Compiler.h
index bec2b064..f283683f 100644
--- a/libsolidity/Compiler.h
+++ b/libsolidity/Compiler.h
@@ -50,8 +50,8 @@ public:
ContractDefinition const& _contract,
std::map<ContractDefinition const*, bytes const*> const& _contracts
);
- bytes getAssembledBytecode() { return m_context.getAssembledBytecode(); }
- bytes getRuntimeBytecode() { return m_context.getAssembledRuntimeBytecode(m_runtimeSub); }
+ bytes assembledBytecode() { return m_context.assembledBytecode(); }
+ bytes runtimeBytecode() { return m_context.assembledRuntimeBytecode(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
@@ -59,13 +59,13 @@ public:
return m_context.streamAssembly(_stream, _sourceCodes, _inJsonFormat);
}
/// @returns Assembly items of the normal compiler context
- eth::AssemblyItems const& getAssemblyItems() const { return m_context.getAssembly().getItems(); }
+ eth::AssemblyItems const& assemblyItems() const { return m_context.assembly().items(); }
/// @returns Assembly items of the runtime compiler context
- eth::AssemblyItems const& getRuntimeAssemblyItems() const { return m_context.getAssembly().getSub(m_runtimeSub).getItems(); }
+ eth::AssemblyItems const& runtimeAssemblyItems() const { return m_context.assembly().sub(m_runtimeSub).items(); }
/// @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;
+ eth::AssemblyItem functionEntryLabel(FunctionDefinition const& _function) const;
private:
/// Registers the non-function objects inside the contract with the context.
@@ -122,7 +122,7 @@ private:
void compileExpression(Expression const& _expression, TypePointer const& _targetType = TypePointer());
/// @returns the runtime assembly for clone contracts.
- static eth::Assembly getCloneRuntime();
+ static eth::Assembly cloneRuntime();
bool const m_optimize;
unsigned const m_optimizeRuns;