Use _LIBCPP_NEW_DELETE_VIS instead of LIBCPP_FUNC_VIS in src/new.cpp.
llvm-svn: 192071
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 32f9a776fb8c4b6acb8f0ecc233d456472c9da7c
diff --git a/src/new.cpp b/src/new.cpp
index a100181..961c020 100644
--- a/src/new.cpp
+++ b/src/new.cpp
@@ -39,7 +39,7 @@
// in this shared library, so that they can be overriden by programs
// that define non-weak copies of the functions.
-_LIBCPP_WEAK _LIBCPP_FUNC_VIS
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
void *
operator new(std::size_t size)
#if !__has_feature(cxx_noexcept)
@@ -66,7 +66,7 @@
return p;
}
-_LIBCPP_WEAK _LIBCPP_FUNC_VIS
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
void*
operator new(size_t size, const std::nothrow_t&) _NOEXCEPT
{
@@ -85,7 +85,7 @@
return p;
}
-_LIBCPP_WEAK _LIBCPP_FUNC_VIS
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
void*
operator new[](size_t size)
#if !__has_feature(cxx_noexcept)
@@ -95,7 +95,7 @@
return ::operator new(size);
}
-_LIBCPP_WEAK _LIBCPP_FUNC_VIS
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
void*
operator new[](size_t size, const std::nothrow_t&) _NOEXCEPT
{
@@ -114,7 +114,7 @@
return p;
}
-_LIBCPP_WEAK _LIBCPP_FUNC_VIS
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
void
operator delete(void* ptr) _NOEXCEPT
{
@@ -122,21 +122,21 @@
::free(ptr);
}
-_LIBCPP_WEAK _LIBCPP_FUNC_VIS
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
void
operator delete(void* ptr, const std::nothrow_t&) _NOEXCEPT
{
::operator delete(ptr);
}
-_LIBCPP_WEAK _LIBCPP_FUNC_VIS
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
void
operator delete[] (void* ptr) _NOEXCEPT
{
::operator delete (ptr);
}
-_LIBCPP_WEAK _LIBCPP_FUNC_VIS
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
void
operator delete[] (void* ptr, const std::nothrow_t&) _NOEXCEPT
{