aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/optimiser/FullInliner.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-19 01:02:04 +0800
committerGitHub <noreply@github.com>2018-10-19 01:02:04 +0800
commit7dffb0f3eecdd1dac75482db2c59207ded7a2dfa (patch)
tree5604ecec4aeb4f2000abc51d7752c3a865e5dab2 /libyul/optimiser/FullInliner.h
parent52ffe5262edb3bd1fcb2477d8f3339f135f85563 (diff)
parentb2725aa913564d48a31718e14e94f00c137eb8de (diff)
downloaddexon-solidity-7dffb0f3eecdd1dac75482db2c59207ded7a2dfa.tar.gz
dexon-solidity-7dffb0f3eecdd1dac75482db2c59207ded7a2dfa.tar.zst
dexon-solidity-7dffb0f3eecdd1dac75482db2c59207ded7a2dfa.zip
Merge pull request #5270 from ethereum/inlineFlexible
Make full inliner more flexible.
Diffstat (limited to 'libyul/optimiser/FullInliner.h')
-rw-r--r--libyul/optimiser/FullInliner.h4
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;
};
/**