Skip to content

Commit 1fb42db

Browse files
committed
[llvm] manual fix-ups to IDS codemod of remaining Support and ADT lib interfaces
1 parent 0982dc3 commit 1fb42db

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

llvm/include/llvm/ADT/APFloat.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ class IEEEFloat final {
672672

673673
integerPart addSignificand(const IEEEFloat &);
674674
integerPart subtractSignificand(const IEEEFloat &, integerPart);
675-
lostFraction addOrSubtractSignificand(const IEEEFloat &, bool subtract);
675+
// Exported for IEEEFloatUnitTestHelper.
676+
LLVM_ABI lostFraction addOrSubtractSignificand(const IEEEFloat &, bool subtract);
676677
lostFraction multiplySignificand(const IEEEFloat &, IEEEFloat,
677678
bool ignoreAddend = false);
678679
lostFraction multiplySignificand(const IEEEFloat&);

llvm/include/llvm/ADT/APInt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ class [[nodiscard]] APInt {
561561
}
562562

563563
/// Overload to compute a hash_code for an APInt value.
564-
friend hash_code hash_value(const APInt &Arg);
564+
LLVM_ABI friend hash_code hash_value(const APInt &Arg);
565565

566566
/// This function returns a pointer to the internal storage of the APInt.
567567
/// This is useful for writing out the APInt in binary form without any

llvm/include/llvm/ADT/DynamicAPInt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class DynamicAPInt {
212212
friend DynamicAPInt operator/(int64_t A, const DynamicAPInt &B);
213213
friend DynamicAPInt operator%(int64_t A, const DynamicAPInt &B);
214214

215-
friend hash_code hash_value(const DynamicAPInt &x); // NOLINT
215+
LLVM_ABI friend hash_code hash_value(const DynamicAPInt &x); // NOLINT
216216

217217
LLVM_ABI void static_assert_layout(); // NOLINT
218218

llvm/include/llvm/Support/Timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class TimerGroup {
258258

259259
private:
260260
friend class Timer;
261-
friend void PrintStatisticsJSON(raw_ostream &OS);
261+
LLVM_ABI friend void PrintStatisticsJSON(raw_ostream &OS);
262262
void addTimer(Timer &T);
263263
void removeTimer(Timer &T);
264264
void prepareToPrintList(bool reset_time = false);

0 commit comments

Comments
 (0)