diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-10-22 02:16:21 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-10-24 22:34:23 +0800 |
commit | 5245a3cf744260be3b4b02bed56759ed89ffc89a (patch) | |
tree | c3d5796f013e119b28c70ec6cf5db34c67c911c2 /libsolidity/codegen/ExpressionCompiler.h | |
parent | acba7b92e5456d14bda1db8b3c71909d6d49c53f (diff) | |
download | dexon-solidity-5245a3cf744260be3b4b02bed56759ed89ffc89a.tar dexon-solidity-5245a3cf744260be3b4b02bed56759ed89ffc89a.tar.gz dexon-solidity-5245a3cf744260be3b4b02bed56759ed89ffc89a.tar.bz2 dexon-solidity-5245a3cf744260be3b4b02bed56759ed89ffc89a.tar.lz dexon-solidity-5245a3cf744260be3b4b02bed56759ed89ffc89a.tar.xz dexon-solidity-5245a3cf744260be3b4b02bed56759ed89ffc89a.tar.zst dexon-solidity-5245a3cf744260be3b4b02bed56759ed89ffc89a.zip |
codegen: refactor common code
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.h')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.h b/libsolidity/codegen/ExpressionCompiler.h index 43a92a10..f4ce1fec 100644 --- a/libsolidity/codegen/ExpressionCompiler.h +++ b/libsolidity/codegen/ExpressionCompiler.h @@ -103,6 +103,8 @@ private: /// expected to be on the stack and is updated by this call. void appendExpressionCopyToMemory(Type const& _expectedType, Expression const& _expression); + /// Appends code for a variable that might be a constant or not + void appendVariable(VariableDeclaration const& _variable, Expression const& _expression); /// Sets the current LValue to a new one (of the appropriate type) from the given declaration. /// Also retrieves the value if it was not requested by @a _expression. void setLValueFromDeclaration(Declaration const& _declaration, Expression const& _expression); |