Skip to content

Commit a568d7d

Browse files
committed
Revert "[libc++] Add explicit ABI annotations to functions from the block runtime declared in <__functional/function.h> (llvm#140592)"
This reverts commit 3e4c9dc.
1 parent f636f06 commit a568d7d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libcxx/include/__functional/function.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,8 @@ class __policy_func<_Rp(_ArgTypes...)> {
752752

753753
# if _LIBCPP_HAS_BLOCKS_RUNTIME
754754

755-
_LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
756-
_LIBCPP_EXPORTED_FROM_ABI extern "C" void* _Block_copy(const void*);
757-
_LIBCPP_EXPORTED_FROM_ABI extern "C" void _Block_release(const void*);
755+
extern "C" void* _Block_copy(const void*);
756+
extern "C" void _Block_release(const void*);
758757

759758
template <class _Rp1, class... _ArgTypes1, class _Alloc, class _Rp, class... _ArgTypes>
760759
class __func<_Rp1 (^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)> : public __base<_Rp(_ArgTypes...)> {
@@ -827,7 +826,6 @@ class __func<_Rp1 (^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)> : public __base
827826
}
828827
# endif // _LIBCPP_HAS_RTTI
829828
};
830-
_LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
831829

832830
# endif // _LIBCPP_HAS_EXTENSION_BLOCKS
833831

0 commit comments

Comments
 (0)