diff options
author | Ashley Nelson <nashley@google.com> | 2023-10-04 11:25:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 18:25:56 +0000 |
commit | db68bae222b835f8190013dca45854c7cc07dadf (patch) | |
tree | 4ead310c3384c35d7172d986f7bcd6c4a22e8796 /src/passes/hash-stringify-walker.cpp | |
parent | 1e17dfb695a19d5d41f1f88411fbcbc5f2408c8f (diff) | |
download | binaryen-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.cpp | 2 |
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); |