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

Function Id or index changes after emittimg the wasm module #254

Open
pavanmikkilineni opened this issue Nov 16, 2023 · 0 comments
Open
Labels
question Further information is requested

Comments

@pavanmikkilineni
Copy link

Summary

I modified an existing wasm module added new functions to it after emitting the wasm module. when i parse the wasm module again the function id changed how do i maintain same function id after emitting the wasm module

// Call instrument_exit, passing the original function's ID as an argument
instrumented_function
.func_body()
.i32_const(function.id().index() as i32)
.call(instrument_exit_function_id);

also the order of the function changed after emitting changes the id of the functions but i want id to same.

@pavanmikkilineni pavanmikkilineni added the question Further information is requested label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant