[llvm] ARM: Read float ABI from the "float-abi" module flag (PR #212981)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 12 01:49:02 PDT 2026
================
@@ -698,8 +698,13 @@ void ARMAsmPrinter::emitAttributes() {
}
const ARMBaseTargetMachine &ATM =
static_cast<const ARMBaseTargetMachine &>(TM);
+ // The float ABI comes from the "float-abi" module flag if present, otherwise
+ // from the legacy -float-abi target option.
+ FloatABI::ABIType FloatABI = MMI->getModule()->getFloatABI();
+ if (FloatABI == FloatABI::Default)
----------------
smithp35 wrote:
Ok fair enough.
https://github.com/llvm/llvm-project/pull/212981
More information about the llvm-commits
mailing list