[llvm] Define a separate symbol for the aot method info for every method. Pass this...
authormonojenkins <jo.shields+jenkins@xamarin.com>
Mon, 6 Apr 2020 22:14:07 +0000 (18:14 -0400)
committerGitHub <noreply@github.com>
Mon, 6 Apr 2020 22:14:07 +0000 (18:14 -0400)
commitaa5341b2bbd1a5bfba3572cdc88ef3cf3a1645dc
tree97b4e14ebfeb83335fcb1c707b5bba39985cc87e
parent986518e2ad9ac431d08ff7effb21fbe1f3aeb3ed
[llvm] Define a separate symbol for the aot method info for every method. Pass this symbol to the init functions instead of the method index. (#34009)

This removes a dependency the generated code has on the method index, hopefully allowing separate compilation etc. in the future.

<!--
Thank you for your Pull Request!

If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.

Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->

Co-authored-by: vargaz <vargaz@users.noreply.github.com>
src/mono/mono/mini/aot-compiler.c
src/mono/mono/mini/aot-runtime.c
src/mono/mono/mini/aot-runtime.h
src/mono/mono/mini/llvmonly-runtime.c
src/mono/mono/mini/llvmonly-runtime.h
src/mono/mono/mini/mini-llvm.c
src/mono/mono/mini/mini-llvm.h
src/mono/mono/mini/mini-runtime.c
src/mono/mono/mini/mini.c
src/mono/mono/mini/mini.h