Don't export assembly functions when function visibility annotations are disabled

Patch by Peiyuan Song!

Differential Revision: https://reviews.llvm.org/D55537

git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@348832 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/src/assembly.h b/src/assembly.h
index e98ad40..cc22c79 100644
--- a/src/assembly.h
+++ b/src/assembly.h
@@ -76,7 +76,11 @@
   .section .drectve,"yn" SEPARATOR                        \
   .ascii "-export:", #name, "\0" SEPARATOR                \
   .text
+#if defined(_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS)
+#define EXPORT_SYMBOL(name)
+#else
 #define EXPORT_SYMBOL(name) EXPORT_SYMBOL2(name)
+#endif
 #define HIDDEN_SYMBOL(name)
 
 #define NO_EXEC_STACK_DIRECTIVE