Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WASM Demangle #149

Merged
merged 1 commit into from
Mar 4, 2019
Merged

Add WASM Demangle #149

merged 1 commit into from
Mar 4, 2019

Conversation

kjlubick
Copy link
Contributor

Unmangled symbols (created with the emscripten SDK) look like:
__Z16computeSomethingihPKNSt3__26vectorIfNS_9allocatorIfEEEE

(note the extra _ in front of __Z)

It appears the mach-o demangling already accounts for this, so we get nice demangled symbols like:
computeSomething(int, unsigned char, std::__2::vector<float, std::__2::allocator<float> > const*)
or
computeSomething()

I wasn't sure how to go about adding tests because make_test_files.sh doesn't assume an emscripten sdk is installed.

@haberman haberman merged commit 89ed043 into google:master Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants