diff options
| author | ChoKyuWon <kyuwoncho18@gmail.com> | 2023-07-18 14:01:33 +0900 |
|---|---|---|
| committer | ChoKyuWon <kyuwoncho18@gmail.com> | 2023-08-18 01:52:40 +0900 |
| commit | 3bd54c14bcf74bd5beedbfdb1300626e2a649659 (patch) | |
| tree | 68c18088775b91990e130c203b87527fde61a4e5 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | ec362f0ae8a05618b75727cfdca853540cb2950e (diff) | |
| download | rust-3bd54c14bcf74bd5beedbfdb1300626e2a649659.tar.gz rust-3bd54c14bcf74bd5beedbfdb1300626e2a649659.zip | |
Replace the \01__gnu_mcount_nc to LLVM intrinsic for ARM
Current `-Zinstrument-mcount` for ARM32 use the `\01__gnu_mcount_nc` directly for its instrumentation function. However, the LLVM does not use this mcount function directly, but it wraps it to intrinsic, `llvm.arm.gnu.eabi.mcount` and the transform pass also only handle the intrinsic. As a result, current `-Zinstrument-mcount` not work on ARM32. Refer: https://github.com/namhyung/uftrace/issues/1764 This commit replaces the mcount name from native function to the LLVM intrinsic so that the transform pass can handle it. Signed-off-by: ChoKyuWon <kyuwoncho18@gmail.com>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
