Adding "-g" works prefectly. Thank you. On Tue, Nov 26, 2019 at 1:15:55 Alon Zakai wrote: > > wasm-opt has a "-g" parameter, which makes it save debug info like > function names. Does adding -g fix it? > > (Also to get function names in a wasm file in the first place, emcc must > be run with --profiling, or --profiling-funcs, -g, or a similar option.) > > > On Tue, Nov 26, 2019 at 7:46 PM Stanislav <[email protected] <javascript:>> > wrote: > >> Hi, >> >> >> I generated WASM with C++ function names (DEMANGLE_SUPPORT is enabled). >> >> After using wasm-opt, all symbolic names are replaced with numeric >> indices. >> I tested wasm-opt with not optimizing parameters: >> >> wasm-opt --optimize-level 0 --shrink-level 0 source.wasm -o dest.wasm >> >> >> but the result hasn’t changed. >> >> >> >> Is there any way to save demangle C++ function names when using wasm-opt? >> >> Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/emscripten-discuss/ab7e5990-f250-4d5f-b326-3f72979e3227%40googlegroups.com >> >> <https://groups.google.com/d/msgid/emscripten-discuss/ab7e5990-f250-4d5f-b326-3f72979e3227%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >
-- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/eb8f293f-2897-41fe-bcd3-9ebbe5c1ae98%40googlegroups.com.
