diff options
author | Alon Zakai <azakai@google.com> | 2021-04-06 10:09:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 10:09:40 -0700 |
commit | 0c8c062f5ec2f11e5b6e17e692aeae0ef97cab89 (patch) | |
tree | 870d2731db61597e306265aa5baf21c4f0d02703 /src | |
parent | 01bc21495af611948533686e372abddbd40825dc (diff) | |
download | binaryen-0c8c062f5ec2f11e5b6e17e692aeae0ef97cab89.tar.gz binaryen-0c8c062f5ec2f11e5b6e17e692aeae0ef97cab89.tar.bz2 binaryen-0c8c062f5ec2f11e5b6e17e692aeae0ef97cab89.zip |
Emit dollar signs when relevant while debugging s-expression elements (#3693)
This is just noticeable when debugging locally and doing a quick print to
stdout.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-s-parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index a42b341f6..98a6cb827 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp @@ -125,6 +125,9 @@ std::ostream& operator<<(std::ostream& o, Element& e) { } o << " )"; } else { + if (e.dollared()) { + o << '$'; + } o << e.str_.str; } return o; |