summaryrefslogtreecommitdiffstats
path: root/libcxx/include
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-08-13 15:02:53 +0000
committerLouis Dionne <ldionne@apple.com>2019-08-13 15:02:53 +0000
commit8a033a9e3fb96b9a1099325c4cd218c1c979d9d9 (patch)
tree16928742174286dedc0d67f29541fefcc7a0dbbe /libcxx/include
parent676594305a16bb085b8dfa24a5adbb5e97be6d69 (diff)
downloadbcm5719-llvm-8a033a9e3fb96b9a1099325c4cd218c1c979d9d9.tar.gz
bcm5719-llvm-8a033a9e3fb96b9a1099325c4cd218c1c979d9d9.zip
[libc++] Always build with -fvisibility=hidden
Summary: This avoids symbols being accidentally exported from the dylib when they shouldn't. The next step is to use a pragma to apply hidden visibility to all declarations (unless otherwise specified), which will allow us to drop the per-declaration hidden visibility attributes we currently have. This also has the nice side effect of making sure the dylib exports the same symbols regardless of the optimization level. PR38138 Reviewers: EricWF, mclow.lists Subscribers: mgorny, christof, jkorous, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D62868 llvm-svn: 368703
Diffstat (limited to 'libcxx/include')
-rw-r--r--libcxx/include/chrono1
-rw-r--r--libcxx/include/filesystem1
2 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/include/chrono b/libcxx/include/chrono
index f3be02b58d7..0e4cf9aef3a 100644
--- a/libcxx/include/chrono
+++ b/libcxx/include/chrono
@@ -2934,6 +2934,7 @@ struct _FilesystemClock {
typedef chrono::duration<rep, period> duration;
typedef chrono::time_point<_FilesystemClock> time_point;
+ _LIBCPP_EXPORTED_FROM_ABI
static _LIBCPP_CONSTEXPR_AFTER_CXX11 const bool is_steady = false;
_LIBCPP_AVAILABILITY_FILESYSTEM _LIBCPP_FUNC_VIS static time_point now() noexcept;
diff --git a/libcxx/include/filesystem b/libcxx/include/filesystem
index 3aaa7988a87..9020a12fea1 100644
--- a/libcxx/include/filesystem
+++ b/libcxx/include/filesystem
@@ -2583,6 +2583,7 @@ public:
void disable_recursion_pending() { __rec_ = false; }
private:
+ _LIBCPP_FUNC_VIS
recursive_directory_iterator(const path& __p, directory_options __opt,
error_code* __ec);
OpenPOWER on IntegriCloud