@@ -572,7 +572,7 @@ class IEEEFloat final {
572572 // / emphasizes producing different codes for different inputs in order to
573573 // / be used in canonicalization and memoization. As such, equality is
574574 // / bitwiseIsEqual, and 0 != -0.
575- friend hash_code hash_value (const IEEEFloat &Arg);
575+ LLVM_ABI_FRIEND friend hash_code hash_value (const IEEEFloat &Arg);
576576
577577 // / Converts this value into a decimal string.
578578 // /
@@ -629,12 +629,13 @@ class IEEEFloat final {
629629 // / 0 -> \c IEK_Zero
630630 // / Inf -> \c IEK_Inf
631631 // /
632- friend int ilogb (const IEEEFloat &Arg);
632+ LLVM_ABI_FRIEND friend int ilogb (const IEEEFloat &Arg);
633633
634634 // / Returns: X * 2^Exp for integral exponents.
635- friend IEEEFloat scalbn (IEEEFloat X, int Exp, roundingMode);
635+ LLVM_ABI_FRIEND friend IEEEFloat scalbn (IEEEFloat X, int Exp, roundingMode);
636636
637- friend IEEEFloat frexp (const IEEEFloat &X, int &Exp, roundingMode);
637+ LLVM_ABI_FRIEND friend IEEEFloat frexp (const IEEEFloat &X, int &Exp,
638+ roundingMode);
638639
639640 // / \name Special value setters.
640641 // / @{
@@ -905,9 +906,11 @@ class DoubleAPFloat final {
905906 LLVM_ABI LLVM_READONLY int getExactLog2 () const ;
906907 LLVM_ABI LLVM_READONLY int getExactLog2Abs () const ;
907908
908- friend DoubleAPFloat scalbn (const DoubleAPFloat &X, int Exp, roundingMode);
909- friend DoubleAPFloat frexp (const DoubleAPFloat &X, int &Exp, roundingMode);
910- friend hash_code hash_value (const DoubleAPFloat &Arg);
909+ LLVM_ABI_FRIEND friend DoubleAPFloat scalbn (const DoubleAPFloat &X, int Exp,
910+ roundingMode);
911+ LLVM_ABI_FRIEND friend DoubleAPFloat frexp (const DoubleAPFloat &X, int &Exp,
912+ roundingMode);
913+ LLVM_ABI_FRIEND friend hash_code hash_value (const DoubleAPFloat &Arg);
911914};
912915
913916LLVM_ABI hash_code hash_value (const DoubleAPFloat &Arg);
@@ -1512,7 +1515,7 @@ class APFloat : public APFloatBase {
15121515 APFLOAT_DISPATCH_ON_SEMANTICS (getExactLog2 ());
15131516 }
15141517
1515- friend hash_code hash_value (const APFloat &Arg);
1518+ LLVM_ABI_FRIEND friend hash_code hash_value (const APFloat &Arg);
15161519 friend int ilogb (const APFloat &Arg) { return ilogb (Arg.getIEEE ()); }
15171520 friend APFloat scalbn (APFloat X, int Exp, roundingMode RM);
15181521 friend APFloat frexp (const APFloat &X, int &Exp, roundingMode RM);
0 commit comments