From 0c8c062f5ec2f11e5b6e17e692aeae0ef97cab89 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 6 Apr 2021 10:09:40 -0700 Subject: 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. --- src/wasm/wasm-s-parser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3