[PATCH] D51509: [AddressSpace] Use the macro to set hidden visibility on LocalAddressSpace.

Charles Davis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 30 14:45:02 PDT 2018


cdavis5x created this revision.
cdavis5x added reviewers: mstorsjo, rnk.
Herald added subscribers: cfe-commits, christof.

That attribute has no effect on Windows anyway--classes are hidden by
default.


Repository:
  rUNW libunwind

https://reviews.llvm.org/D51509

Files:
  src/AddressSpace.hpp


Index: src/AddressSpace.hpp
===================================================================
--- src/AddressSpace.hpp
+++ src/AddressSpace.hpp
@@ -180,7 +180,7 @@
 /// LocalAddressSpace is used as a template parameter to UnwindCursor when
 /// unwinding a thread in the same process.  The wrappers compile away,
 /// making local unwinds fast.
-class __attribute__((visibility("hidden"))) LocalAddressSpace {
+class _LIBUNWIND_HIDDEN LocalAddressSpace {
 public:
   typedef uintptr_t pint_t;
   typedef intptr_t  sint_t;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51509.163416.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180830/d0d8c655/attachment.bin>


More information about the cfe-commits mailing list