[llvm-commits] [llvm-gcc-4.2] r42325 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c

Devang Patel dpatel at apple.com
Tue Sep 25 15:42:51 PDT 2007


Author: dpatel
Date: Tue Sep 25 17:42:51 2007
New Revision: 42325

URL: http://llvm.org/viewvc/llvm-project?rev=42325&view=rev
Log:
Do not hide objc_class_name_Foo even if -fvisibility=hidden is set.


Modified:
    llvm-gcc-4.2/trunk/gcc/objc/objc-act.c

Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/objc/objc-act.c?rev=42325&r1=42324&r2=42325&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Tue Sep 25 17:42:51 2007
@@ -17961,6 +17961,8 @@
       DECL_ARTIFICIAL (decl) = 1;
       /* LLVM LOCAL begin */
 #ifdef ENABLE_LLVM
+      DECL_VISIBILITY (decl) = VISIBILITY_DEFAULT;
+      DECL_VISIBILITY_SPECIFIED (decl) = 1;
       set_user_assembler_name(decl, string);
       /* Let optimizer know that this decl is not removable.  */
       DECL_PRESERVE_P (decl) = 1;





More information about the llvm-commits mailing list