diff options
Diffstat (limited to 'src/ir/hashed.h')
-rw-r--r-- | src/ir/hashed.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ir/hashed.h b/src/ir/hashed.h index fe0a0b958..3068966c5 100644 --- a/src/ir/hashed.h +++ b/src/ir/hashed.h @@ -38,25 +38,6 @@ struct HashedExpression { : expr(other.expr), hash(other.hash) {} }; -struct ExpressionHasher { - HashType operator()(const HashedExpression value) const { return value.hash; } -}; - -struct ExpressionComparer { - bool operator()(const HashedExpression a, const HashedExpression b) const { - if (a.hash != b.hash) { - return false; - } - return ExpressionAnalyzer::equal(a.expr, b.expr); - } -}; - -template<typename T> -class HashedExpressionMap - : public std:: - unordered_map<HashedExpression, T, ExpressionHasher, ExpressionComparer> { -}; - // A pass that hashes all functions struct FunctionHasher : public WalkerPass<PostWalker<FunctionHasher>> { |