diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-11-11 08:39:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-11 08:39:17 -0800 |
commit | af9250f743a52b374cef88bb3f78ec31c9f5eacf (patch) | |
tree | 487f72f1d06b40ab7bef80d24c99f9f2dd4287ba /src/generate-names.h | |
parent | 3cc34754555c224c1693d7c42925c3c32145e3e0 (diff) | |
download | wabt-af9250f743a52b374cef88bb3f78ec31c9f5eacf.tar.gz wabt-af9250f743a52b374cef88bb3f78ec31c9f5eacf.tar.bz2 wabt-af9250f743a52b374cef88bb3f78ec31c9f5eacf.zip |
wasm-decompile: Fixed arbitrary characters appearing in function names. (#1213)
In particular, LLD may stick entire C++ signatures in names, that
WABT then uses with wasm2wat, but are not appropriate for wasm-decompile
function names.
Diffstat (limited to 'src/generate-names.h')
-rw-r--r-- | src/generate-names.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/generate-names.h b/src/generate-names.h index 21557160..8b8bc752 100644 --- a/src/generate-names.h +++ b/src/generate-names.h @@ -26,7 +26,8 @@ struct Module; enum NameOpts { None = 0, AlphaNames = 1 << 0, - NoDollar = 1 << 0, + NoDollar = 1 << 1, + OnlyAlphaNum = 1 << 2, }; Result GenerateNames(struct Module*, NameOpts opts = NameOpts::None); |