Use metrics in the full inliner.

This commit is contained in:
chriseth
2018-10-17 14:11:20 +02:00
parent ba1588828f
commit 9fb5feed05
7 changed files with 170 additions and 8 deletions
+3
View File
@@ -36,6 +36,9 @@ public:
/// Returns a metric for the code size of an AST element.
/// More specifically, it returns the number of AST nodes.
static size_t codeSize(Expression const& _expression);
/// Returns a metric for the code size of an AST element.
/// More specifically, it returns the number of AST nodes.
static size_t codeSize(Block const& _block);
private:
virtual void visit(Statement const& _statement) override;