mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
move hasher
This commit is contained in:
parent
eaf5fc95f8
commit
ad33e295bb
@ -138,7 +138,7 @@ struct ExpressionHash
|
||||
{
|
||||
uint64_t operator()(Expression const& _expression) const
|
||||
{
|
||||
return ExpressionHasher{}.run(_expression);
|
||||
return ExpressionHasher::run(_expression);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -134,11 +134,6 @@ void CommonSubexpressionEliminator::assignValue(YulString _variable, Expression
|
||||
DataFlowAnalyzer::assignValue(_variable, _value);
|
||||
}
|
||||
|
||||
uint64_t CommonSubexpressionEliminator::ExpressionHash::operator()(Expression const& _e) const
|
||||
{
|
||||
return ExpressionHasher::run(_e);
|
||||
}
|
||||
|
||||
bool CommonSubexpressionEliminator::ExpressionEqual::operator()(Expression const& _a, Expression const& _b) const
|
||||
{
|
||||
return SyntacticallyEqual{}(_a, _b);
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include <libyul/optimiser/DataFlowAnalyzer.h>
|
||||
#include <libyul/optimiser/OptimiserStep.h>
|
||||
#include <libyul/optimiser/BlockHasher.h>
|
||||
|
||||
#include <set>
|
||||
|
||||
@ -60,9 +61,6 @@ protected:
|
||||
|
||||
void assignValue(YulString _variable, Expression const* _value) override;
|
||||
private:
|
||||
struct ExpressionHash {
|
||||
uint64_t operator()(Expression const&) const;
|
||||
};
|
||||
struct ExpressionEqual {
|
||||
bool operator()(Expression const&, Expression const&) const;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user