diff options
author | Sam Clegg <sbc@chromium.org> | 2019-12-06 14:56:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-06 14:56:07 -0600 |
commit | b232033385b025ba276423613fb67f644c0596ce (patch) | |
tree | b30376610ebafcf6e44d2becb7c8eebfe4b74e7f /test/passes/nm.txt | |
parent | 6f55457c3edbeed202f27647a2cf0482160af098 (diff) | |
download | binaryen-b232033385b025ba276423613fb67f644c0596ce.tar.gz binaryen-b232033385b025ba276423613fb67f644c0596ce.tar.bz2 binaryen-b232033385b025ba276423613fb67f644c0596ce.zip |
Don't include `$` with names unless outputting to wat format (#2506)
The `$` is not actually part of the name, its the marker that starts
a name in the wat format. It can be confusing to see it show up when
doing `cerr << name`, for example.
This change has Print.cpp add the `$` which seem like the right place
to do this. Plus it revealed a bunch of places where were not calling
printName to escape all the names we were printing.
Diffstat (limited to 'test/passes/nm.txt')
-rw-r--r-- | test/passes/nm.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/passes/nm.txt b/test/passes/nm.txt index e34788c6d..3a8aad31d 100644 --- a/test/passes/nm.txt +++ b/test/passes/nm.txt @@ -1,6 +1,6 @@ - $a : 1 - $b : 5 - $c : 13 + a : 1 + b : 5 + c : 13 (module (type $0 (func)) (memory $0 0) |