aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/CompilerUtils.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/CompilerUtils.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/CompilerUtils.h')
-rw-r--r--libsolidity/CompilerUtils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/CompilerUtils.h b/libsolidity/CompilerUtils.h
index dbb00a1d..0875ddd2 100644
--- a/libsolidity/CompilerUtils.h
+++ b/libsolidity/CompilerUtils.h
@@ -131,8 +131,8 @@ public:
void popStackSlots(size_t _amount);
template <class T>
- static unsigned getSizeOnStack(std::vector<T> const& _variables);
- static unsigned getSizeOnStack(std::vector<std::shared_ptr<Type const>> const& _variableTypes);
+ static unsigned sizeOnStack(std::vector<T> const& _variables);
+ static unsigned sizeOnStack(std::vector<std::shared_ptr<Type const>> const& _variableTypes);
/// Appends code that computes tha SHA3 hash of the topmost stack element of 32 byte type.
void computeHashStatic();
@@ -166,11 +166,11 @@ private:
template <class T>
-unsigned CompilerUtils::getSizeOnStack(std::vector<T> const& _variables)
+unsigned CompilerUtils::sizeOnStack(std::vector<T> const& _variables)
{
unsigned size = 0;
for (T const& variable: _variables)
- size += variable->getType()->getSizeOnStack();
+ size += variable->type()->sizeOnStack();
return size;
}