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]> 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]. > 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/CAEX4NpRMPo07V8n4CsXD7W%3DGy_GVgT%3DNJtVRrWmWEYoFERGSWg%40mail.gmail.com.
