]> git.lizzy.rs Git - rust.git/commit
On ARM, use relocation_model to detect whether r9 should be reserved
authorAmanieu d'Antras <amanieu@gmail.com>
Thu, 17 Feb 2022 14:16:52 +0000 (14:16 +0000)
committerAmanieu d'Antras <amanieu@gmail.com>
Mon, 21 Feb 2022 18:28:22 +0000 (18:28 +0000)
commite62c26e39d5a6ffda051aa956efde35226262951
tree4731d60e52b97ae92d5164c176471b2920afc5a5
parent7e80bc3c8d8ab353ae498b10ad91049db5d3dbca
On ARM, use relocation_model to detect whether r9 should be reserved

The previous approach of checking for the reserve-r9 target feature
didn't actually work because LLVM only sets this feature very late when
initializing the per-function subtarget.
src/inline_asm.rs