diff options
author | chriseth <chris@ethereum.org> | 2018-10-17 03:38:47 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-18 20:57:09 +0800 |
commit | b2725aa913564d48a31718e14e94f00c137eb8de (patch) | |
tree | da78ee45a0cbb50a23c174239b5dad50863ac54b /libyul/optimiser/FullInliner.h | |
parent | 7609e2871e77b623d4c6187b7ebed693ce74cd0e (diff) | |
download | dexon-solidity-b2725aa913564d48a31718e14e94f00c137eb8de.tar dexon-solidity-b2725aa913564d48a31718e14e94f00c137eb8de.tar.gz dexon-solidity-b2725aa913564d48a31718e14e94f00c137eb8de.tar.bz2 dexon-solidity-b2725aa913564d48a31718e14e94f00c137eb8de.tar.lz dexon-solidity-b2725aa913564d48a31718e14e94f00c137eb8de.tar.xz dexon-solidity-b2725aa913564d48a31718e14e94f00c137eb8de.tar.zst dexon-solidity-b2725aa913564d48a31718e14e94f00c137eb8de.zip |
Make full inliner more flexible.
Diffstat (limited to 'libyul/optimiser/FullInliner.h')
-rw-r--r-- | libyul/optimiser/FullInliner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libyul/optimiser/FullInliner.h b/libyul/optimiser/FullInliner.h index cd59ab46..5ecfb57a 100644 --- a/libyul/optimiser/FullInliner.h +++ b/libyul/optimiser/FullInliner.h @@ -71,7 +71,7 @@ class NameCollector; class FullInliner: public ASTModifier { public: - explicit FullInliner(Block& _ast); + explicit FullInliner(Block& _ast, NameDispenser& _dispenser); void run(); @@ -94,7 +94,7 @@ private: /// Variables that are constants (used for inlining heuristic) std::set<std::string> m_constants; std::map<std::string, size_t> m_functionSizes; - NameDispenser m_nameDispenser; + NameDispenser& m_nameDispenser; }; /** |