Factor the function mono_call_add_patch_info out of a few lines of repeated code...
authorJay Krell <jay.krell@cornell.edu>
Wed, 17 Apr 2019 07:41:54 +0000 (00:41 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 17 Apr 2019 07:41:54 +0000 (09:41 +0200)
commitca39a6cdf95fda8e51cd89489c7e195036f544f8
treef470e40a190a425b1ace27ac287df4d692b17c80
parent63d816b67552e8577f0fd7427f050632903d0aee
Factor the function mono_call_add_patch_info out of a few lines of repeated code in many backends. (mono/mono#13970)

This notably does not apply to amd64, x86.
They have more logic intertwined around the patch when they emit the call.

Commit migrated from https://github.com/mono/mono/commit/cd5e14a3ccaa76e6ba6c58b26823863a2d0a0854
src/mono/mono/mini/calls.c
src/mono/mono/mini/mini-arm.c
src/mono/mono/mini/mini-arm64.c
src/mono/mono/mini/mini-mips.c
src/mono/mono/mini/mini-ppc.c
src/mono/mono/mini/mini-s390x.c
src/mono/mono/mini/mini.c
src/mono/mono/mini/mini.h