summaryrefslogtreecommitdiff
path: root/src/passes/hash-stringify-walker.cpp
diff options
context:
space:
mode:
authorAshley Nelson <nashley@google.com>2023-10-04 11:25:56 -0700
committerGitHub <noreply@github.com>2023-10-04 18:25:56 +0000
commitdb68bae222b835f8190013dca45854c7cc07dadf (patch)
tree4ead310c3384c35d7172d986f7bcd6c4a22e8796 /src/passes/hash-stringify-walker.cpp
parent1e17dfb695a19d5d41f1f88411fbcbc5f2408c8f (diff)
downloadbinaryen-db68bae222b835f8190013dca45854c7cc07dadf.tar.gz
binaryen-db68bae222b835f8190013dca45854c7cc07dadf.tar.bz2
binaryen-db68bae222b835f8190013dca45854c7cc07dadf.zip
[Outlining] Adds separator context (#5977)
Adds a std::variant to represent the context of why a unique symbol was inserted in the stringified module. This allows us to pass necessary contextual data to subclasses of StringifyWalker in a structured manner.
Diffstat (limited to 'src/passes/hash-stringify-walker.cpp')
-rw-r--r--src/passes/hash-stringify-walker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/hash-stringify-walker.cpp b/src/passes/hash-stringify-walker.cpp
index 9a7cee08f..43cc3d544 100644
--- a/src/passes/hash-stringify-walker.cpp
+++ b/src/passes/hash-stringify-walker.cpp
@@ -52,7 +52,7 @@ bool StringifyEquator::operator()(Expression* lhs, Expression* rhs) const {
return ExpressionAnalyzer::shallowEqual(lhs, rhs);
}
-void HashStringifyWalker::addUniqueSymbol() {
+void HashStringifyWalker::addUniqueSymbol(SeparatorReason reason) {
// Use a negative value to distinguish symbols for separators from symbols
// for Expressions
assert((uint32_t)nextSeparatorVal >= nextVal);