diff options
author | chriseth <chris@ethereum.org> | 2017-02-17 03:12:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 03:12:31 +0800 |
commit | 7bdc4ddab2be7990d09f102606f788f054da41db (patch) | |
tree | aadf29b475d77125da7101eeebaba7a4c6d8638a /libsolidity/inlineasm/AsmCodeGen.cpp | |
parent | 0ad8e53404514413761b198f42424cb2c1989b9a (diff) | |
parent | 01fcd989b57d31fa8fc63720401ffc77698ee57b (diff) | |
download | dexon-solidity-7bdc4ddab2be7990d09f102606f788f054da41db.tar dexon-solidity-7bdc4ddab2be7990d09f102606f788f054da41db.tar.gz dexon-solidity-7bdc4ddab2be7990d09f102606f788f054da41db.tar.bz2 dexon-solidity-7bdc4ddab2be7990d09f102606f788f054da41db.tar.lz dexon-solidity-7bdc4ddab2be7990d09f102606f788f054da41db.tar.xz dexon-solidity-7bdc4ddab2be7990d09f102606f788f054da41db.tar.zst dexon-solidity-7bdc4ddab2be7990d09f102606f788f054da41db.zip |
Merge pull request #1627 from ethereum/asmfunctions
Parsing assembly function definitions and calls.
Diffstat (limited to 'libsolidity/inlineasm/AsmCodeGen.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmCodeGen.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmCodeGen.cpp b/libsolidity/inlineasm/AsmCodeGen.cpp index 43c3b27a..faa7dabd 100644 --- a/libsolidity/inlineasm/AsmCodeGen.cpp +++ b/libsolidity/inlineasm/AsmCodeGen.cpp @@ -190,6 +190,10 @@ public: } (*this)(_instr.instruction); } + void operator()(assembly::FunctionCall const&) + { + solAssert(false, "Function call not removed during desugaring phase."); + } void operator()(Label const& _label) { m_state.assembly.setSourceLocation(_label.location); @@ -249,7 +253,10 @@ public: _block.location ); } - + } + void operator()(assembly::FunctionDefinition const&) + { + solAssert(false, "Function definition not removed during desugaring phase."); } private: |