summaryrefslogtreecommitdiffstats
path: root/libcxx/docs/DesignDocs
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-10-31 02:07:23 +0000
committerEric Fiselier <eric@efcs.ca>2016-10-31 02:07:23 +0000
commit7ca76565e7c3e206011072673347e7ab63428207 (patch)
tree379f123af815972459ae098274a48f3e3e4ef11b /libcxx/docs/DesignDocs
parentef915d3ef476f9de691300b6c6f9862b6b5607f8 (diff)
downloadbcm5719-llvm-7ca76565e7c3e206011072673347e7ab63428207.tar.gz
bcm5719-llvm-7ca76565e7c3e206011072673347e7ab63428207.zip
Fix _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to always have default visibility.
This prevent the symbols from being both externally available and hidden, which causes them to be linked incorrectly. This is only a problem when the address of the function is explicitly taken since it will always be inlined otherwise. This patch fixes the issues that caused r285456 to be reverted, and can now be reapplied. llvm-svn: 285531
Diffstat (limited to 'libcxx/docs/DesignDocs')
-rw-r--r--libcxx/docs/DesignDocs/VisibilityMacros.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/libcxx/docs/DesignDocs/VisibilityMacros.rst b/libcxx/docs/DesignDocs/VisibilityMacros.rst
index 67886e392ae..861cc04ac45 100644
--- a/libcxx/docs/DesignDocs/VisibilityMacros.rst
+++ b/libcxx/docs/DesignDocs/VisibilityMacros.rst
@@ -92,14 +92,13 @@ Visibility Macros
On all other platforms, this macro has an empty definition.
**_LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY**
- Mark a member function of a class template as hidden and inline except when
- building the libc++ library where it marks the symbol as being exported by
- the library.
+ Mark a member function of a class template as visible and always inline. This
+ macro should only be applied to member functions of class templates that are
+ externally instantiated. It is important that these symbols are not marked
+ as hidden as that will prevent the dylib definition from being found.
This macro is used to maintain ABI compatibility for symbols that have been
- historically exported by the libc++ library but are now marked inline. It
- should only be applied to member functions of class templates that are
- externally instantiated.
+ historically exported by the libc++ library but are now marked inline.
**_LIBCPP_EXCEPTION_ABI**
Mark the member functions, typeinfo, and vtable of the type as being exported
OpenPOWER on IntegriCloud