diff options
author | chriseth <chris@ethereum.org> | 2017-05-27 03:46:02 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-05-29 22:18:16 +0800 |
commit | 4af55c78ebcacb5cfda1b573253cac6e6824d67a (patch) | |
tree | e03445356136f0186cd37eb1fb1b9b5b4e6b66c4 /libsolidity/inlineasm/AsmScopeFiller.h | |
parent | 002df12d13fb423be641878a20b73bd10f90a6df (diff) | |
download | dexon-solidity-4af55c78ebcacb5cfda1b573253cac6e6824d67a.tar.gz dexon-solidity-4af55c78ebcacb5cfda1b573253cac6e6824d67a.tar.zst dexon-solidity-4af55c78ebcacb5cfda1b573253cac6e6824d67a.zip |
Introduce virtual blocks for function arguments.
Diffstat (limited to 'libsolidity/inlineasm/AsmScopeFiller.h')
-rw-r--r-- | libsolidity/inlineasm/AsmScopeFiller.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/inlineasm/AsmScopeFiller.h b/libsolidity/inlineasm/AsmScopeFiller.h index c7179b3b..42e80141 100644 --- a/libsolidity/inlineasm/AsmScopeFiller.h +++ b/libsolidity/inlineasm/AsmScopeFiller.h @@ -49,6 +49,7 @@ struct FunctionCall; struct Switch; struct Scope; +struct AsmAnalysisInfo; /** * Fills scopes with identifiers and checks for name clashes. @@ -57,8 +58,7 @@ struct Scope; class ScopeFiller: public boost::static_visitor<bool> { public: - using Scopes = std::map<assembly::Block const*, std::shared_ptr<Scope>>; - ScopeFiller(Scopes& _scopes, ErrorList& _errors); + ScopeFiller(AsmAnalysisInfo& _info, ErrorList& _errors); bool operator()(assembly::Instruction const&) { return true; } bool operator()(assembly::Literal const&) { return true; } @@ -83,7 +83,7 @@ private: Scope& scope(assembly::Block const* _block); Scope* m_currentScope = nullptr; - Scopes& m_scopes; + AsmAnalysisInfo& m_info; ErrorList& m_errors; }; |