Lines Matching full:hidden
2 … -triple=x86_64-apple-darwin10 -fvisibility hidden -emit-llvm -o - | FileCheck %s -check-prefix=CH…
3 // For clang, "internal" is just an alias for "hidden". We could use it for some
5 …6_64-apple-darwin10 -fvisibility internal -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-HIDDEN
7 #define HIDDEN __attribute__((visibility("hidden"))) macro
12 // When H is hidden, it should make X hidden, even if the template argument
22 // CHECK-HIDDEN: _ZN6test301bE = hidden global
37 // CHECK-HIDDEN: @_ZN6test251aE = hidden global
45 // CHECK-HIDDEN: @_ZN6test285myvecE = hidden global
49 #pragma GCC visibility push(hidden)
57 // CHECK-HIDDEN: @_ZN6test299data_rectE = global
69 // CHECK-HIDDEN: _ZN6test403fooIiE3barE = weak_odr global
73 // Unlike gcc we propagate the information that foo not only is hidden, but
74 // has been explicitly marked as so. This lets us produce a hidden undefined
76 struct HIDDEN foo {};
81 // CHECK: @_ZN6test413barE = external hidden global
82 // CHECK-HIDDEN: @_ZN6test413barE = external hidden global
89 struct HIDDEN foo {
100 // CHECK: _ZN6test481yE = hidden global
101 // CHECK-HIDDEN: _ZN6test481yE = hidden global
104 // CHECK: @_ZN5Test425VariableInHiddenNamespaceE = hidden global i32 10
105 // CHECK: @_ZN5Test71aE = hidden global
108 // CHECK-HIDDEN: @test9_var = global
109 // CHECK: @_ZN6Test121A6hiddenE = external hidden global
111 // CHECK-HIDDEN: @_ZN6Test121A6hiddenE = external hidden global
112 // CHECK-HIDDEN: @_ZN6Test121A7visibleE = external global
113 // CHECK: @_ZN6Test131B1aE = hidden global
115 // CHECK-HIDDEN: @_ZN6Test131B1aE = hidden global
116 // CHECK-HIDDEN: @_ZN6Test131C1aE = global
118 // CHECK-HIDDEN: @_ZN6Test143varE = external global
120 // CHECK-HIDDEN: @_ZN6Test154TempINS_1AEE5Inner6bufferE = external global [0 x i8]
138 // CHECK-HIDDEN: _ZTVN6test271CIiE1DE = unnamed_addr constant
141 // CHECK: @_ZTVN5Test63fooE = linkonce_odr hidden unnamed_addr constant
143 // CHECK-HIDDEN: @_ZTVN6Test161AIcEE = external unnamed_addr constant
144 // CHECK-HIDDEN: @_ZTTN6Test161AIcEE = external unnamed_addr constant
147 // CHECK-HIDDEN: @_ZZN6test681fC1EvE4test = linkonce_odr hidden global
150 // CHECK-HIDDEN: @_ZGVZN6test681fC1EvE4test = linkonce_odr hidden global
153 // CHECK-HIDDEN: @_ZZN6Test193fooIiEEvvE1a = linkonce_odr hidden global
156 // CHECK-HIDDEN: @_ZGVZN6Test193fooIiEEvvE1a = linkonce_odr hidden global i64
159 // CHECK-LABEL: define hidden void @_ZN5Test11fEv
160 void HIDDEN f() { } in f()
165 struct HIDDEN A {
169 // A::f is a member function of a hidden class.
170 // CHECK-LABEL: define hidden void @_ZN5Test21A1fEv
175 struct HIDDEN A {
181 // B is a nested class where its parent class is hidden.
182 // CHECK-LABEL: define hidden void @_ZN5Test31A1B1fEv
186 namespace Test4 HIDDEN {
189 // Test4::g is in a hidden namespace.
190 // CHECK-LABEL: define hidden void @_ZN5Test41gEv
204 namespace NS HIDDEN {
205 // f is in NS which is hidden.
206 // CHECK-LABEL: define hidden void @_ZN5Test52NS1fEv()
211 // g is in NS, but this NS decl is not hidden.
219 struct HIDDEN foo {
236 class HIDDEN A {};
246 // CHECK-LABEL: define linkonce_odr hidden void @_ZN5Test74ArefIL_ZNS_1aEEE3fooEv()
255 // CHECK-HIDDEN-LABEL: define hidden void @_ZN5Test83barEv()
256 // CHECK-HIDDEN: declare void @_ZN5Test83fooEv()
272 // CHECK-HIDDEN-LABEL: define void @test9_fun(
289 // CHECK-HIDDEN-LABEL: define void @_ZN6Test101B3fooEPNS_1AE(
308 // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6Test111A3fooEv(
309 // CHECK-HIDDEN-LABEL: define linkonce_odr void @_ZN6Test111A3barEv(
315 // This is hidden in all cases: the explicit attribute takes
317 static int hidden HIDDEN; member
324 A::hidden = 0; in test()
331 struct HIDDEN A {};
333 // Should be hidden in all cases.
348 // Neither the visibility of the type nor -fvisibility=hidden should
384 struct HIDDEN A {
387 static void HIDDEN baz();
392 static void HIDDEN baz();
404 // CHECK: declare hidden void @_ZN6Test171A3fooEv()
406 // CHECK: declare hidden void @_ZN6Test171A3bazEv()
409 // CHECK: declare hidden void @_ZN6Test171A1B3bazEv()
410 // CHECK-HIDDEN: declare hidden void @_ZN6Test171A3fooEv()
411 // CHECK-HIDDEN: declare void @_ZN6Test171A3barEv()
412 // CHECK-HIDDEN: declare hidden void @_ZN6Test171A3bazEv()
413 // CHECK-HIDDEN: declare void @_ZN6Test171A1B3fooEv()
414 // CHECK-HIDDEN: declare void @_ZN6Test171A1B3barEv()
415 // CHECK-HIDDEN: declare hidden void @_ZN6Test171A1B3bazEv()
419 template <class T> struct HIDDEN A {
422 static void HIDDEN baz();
427 static void HIDDEN baz();
430 struct HIDDEN H;
446 // CHECK: declare hidden void @_ZN6Test181AIiE3fooEv()
448 // CHECK: declare hidden void @_ZN6Test181AIiE3bazEv()
451 // CHECK: declare hidden void @_ZN6Test181AIiE1B3bazEv()
452 // CHECK: declare hidden void @_ZN6Test181AINS_1HEE3fooEv()
453 // CHECK: declare hidden void @_ZN6Test181AINS_1HEE3barEv()
454 // CHECK: declare hidden void @_ZN6Test181AINS_1HEE3bazEv()
455 // CHECK: declare hidden void @_ZN6Test181AINS_1HEE1B3fooEv()
456 // CHECK: declare hidden void @_ZN6Test181AINS_1HEE1B3barEv()
457 // CHECK: declare hidden void @_ZN6Test181AINS_1HEE1B3bazEv()
458 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AIiE3fooEv()
459 // CHECK-HIDDEN: declare void @_ZN6Test181AIiE3barEv()
460 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AIiE3bazEv()
461 // CHECK-HIDDEN: declare void @_ZN6Test181AIiE1B3fooEv()
462 // CHECK-HIDDEN: declare void @_ZN6Test181AIiE1B3barEv()
463 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AIiE1B3bazEv()
464 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AINS_1HEE3fooEv()
465 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AINS_1HEE3barEv()
466 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AINS_1HEE3bazEv()
467 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AINS_1HEE1B3fooEv()
468 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AINS_1HEE1B3barEv()
469 // CHECK-HIDDEN: declare hidden void @_ZN6Test181AINS_1HEE1B3bazEv()
487 template <unsigned> struct HIDDEN A {};
496 // CHECK-LABEL: define hidden void @_ZN6Test201AILj0EE5test0Ev()
499 // CHECK: declare hidden void @_ZN6Test201AILj0EE5test1Ev()
526 // CHECK-LABEL: define linkonce_odr hidden void @_ZN6Test201BINS_1AILj2EEEE5test4Ev()
531 // CHECK: declare hidden void @_ZN6Test201BINS_1AILj2EEEE5test5Ev()
574 // CHECK-HIDDEN: declare void @_ZN6test221BINS_2A1EE3fooEv()
575 // CHECK-HIDDEN-LABEL: define linkonce_odr void @_ZN6test221BINS_2A1EE3barEv()
576 // CHECK-HIDDEN: declare void @_ZN6test221BINS_2A2EE3fooEv()
577 // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test221BINS_2A2EE3barEv()
589 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN7PR101133foo3barIcE3zedEv
595 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN7PR101133foo3barINS_3zedEE3zedEv
605 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZNK7PR116905ClassIcE4sizeEv
610 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN7PR116906MethodIcEEvv
626 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN9PR11690_23foo3zedINS_3bazENS0_3barEE3barEv
645 // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test231XINS_1AEE1fEv
659 // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN7PR120014BindINS_7VersionEEEvRKT_
675 // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test241S3memINS_1AEEEvv
688 // CHECK-HIDDEN-LABEL: define void @_ZN6test261CIiE1fEv
693 struct HIDDEN B {
701 // CHECK-HIDDEN: declare void @_ZN6test311A1B3bazEv()
705 struct HIDDEN A {
713 // CHECK-HIDDEN-LABEL: define void @_ZN6test321A1B3bazEv
721 struct HIDDEN zed {
725 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test333fooINS_3zedEE3barEv
735 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test343barINS_3fooEEEvv
753 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test353fooINS_3zedEE3barEv
762 struct HIDDEN S2 {};
764 // CHECK-LABEL: define weak_odr hidden void @_ZN6test363fooINS_2S1ENS_2S2EE3barEv
765 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test363fooINS_2S1ENS_2S2EE3barEv
769 struct HIDDEN foo {
775 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test373barINS_3fooEEEvv
783 struct HIDDEN zed {
786 // CHECK-LABEL: define weak_odr hidden void @_ZN6test383fooINS_3zedEE3barEv
787 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test383fooINS_3zedEE3barEv
792 class HIDDEN hidden_t;
795 HIDDEN void hidden() {} in hidden() function in test39::A::B
805 // CHECK-LABEL: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E6hiddenEv
810 // CHECK-LABEL: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempIS1_EEvv
812 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E6hiddenEv
813 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E6noattrEv
814 …// CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempINS_9default_t…
817 …// CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempIS1_EEvv
821 struct HIDDEN foo {
827 struct HIDDEN bar<foo> {
833 // CHECK-HIDDEN-LABEL: define void @_ZN6test423barINS_3fooEE3zedEv
837 struct HIDDEN foo {
846 // CHECK-HIDDEN-LABEL: define void @_ZN6test433barINS_3fooEEEvv
860 // CHECK-HIDDEN-LABEL: define internal void @_ZN6test443fooINS_12_GLOBAL__N_13barEEC1Ev
877 // CHECK-HIDDEN-LABEL: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev
892 // CHECK-HIDDEN-LABEL: define internal void @_ZN6test463fooINS_12_GLOBAL__N_13barEEEvv
909 // CHECK-HIDDEN-LABEL: define internal void @_ZN6test473foo3barINS_12_GLOBAL__N_13zedEEEvv
917 struct HIDDEN foo {
929 // CHECK-LABEL: define weak_odr hidden void @_ZN6test493bar3zedIXadL_ZNS_1xEEEEEvv
930 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test493bar3zedIXadL_ZNS_1xEEEEEvv
938 struct HIDDEN foo {
947 // CHECK-LABEL: define weak_odr hidden void @_ZN6test503barIXadL_ZNS_1xEEEE3zedEv
948 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test503barIXadL_ZNS_1xEEEE3zedEv
956 struct HIDDEN foo {
963 // CHECK-LABEL: define weak_odr hidden void @_ZN6test513zedIXadL_ZNS_1xEEEEEvv
964 // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test513zedIXadL_ZNS_1xEEEEEvv
983 // CHECK-HIDDEN-LABEL: define internal void @_ZN6test523zedILPNS_12_GLOBAL__N_13fooE0EEEvv
990 #pragma GCC visibility push(hidden)
994 // GCC fails to mark this specialization hidden, we mark it.
1006 // CHECK-HIDDEN: declare void @_ZN6test536vectorIjE14_M_fill_insertEv
1007 // CHECK: declare hidden void @_ZN6test536vectorIiE14_M_fill_insertEv
1008 // CHECK-HIDDEN: declare hidden void @_ZN6test536vectorIiE14_M_fill_insertEv
1009 // CHECK: declare hidden void @_ZN6test536vectorINS_3zedEE14_M_fill_insertEv
1010 // CHECK-HIDDEN: declare hidden void @_ZN6test536vectorINS_3zedEE14_M_fill_insertEv
1018 #pragma GCC visibility push(hidden)
1026 // CHECK: declare hidden void @_ZN6test543fooINS_3zedEE3barEv
1027 // CHECK-HIDDEN: declare hidden void @_ZN6test543fooINS_3zedEE3barEv
1032 struct HIDDEN foo {
1039 // CHECK: declare hidden void @_ZN6test553fooIiE3barEv
1040 // CHECK-HIDDEN: declare hidden void @_ZN6test553fooIiE3barEv
1046 struct HIDDEN foo {
1052 // CHECK: declare hidden void @_ZN6test563fooIiE3barEv
1053 // CHECK-HIDDEN: declare hidden void @_ZN6test563fooIiE3barEv
1057 #pragma GCC visibility push(hidden)
1069 // CHECK: declare hidden void @_ZN6test573fooIiE3zedEv
1070 // CHECK-HIDDEN: declare hidden void @_ZN6test573fooIiE3zedEv
1074 #pragma GCC visibility push(hidden)
1085 // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test583barINS_3fooEE3zedEv
1086 // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test583barINS_3fooEE3zedEv
1091 HIDDEN int g();
1097 …// CHECK-LABEL: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1gEvEEXadL_ZNS_1fEvEEEEvv in use()
1098 …// CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1gEvEEXadL_ZNS_1f… in use()
1101 …// CHECK-LABEL: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1fEvEEXadL_ZNS_1gEvEEEEvv in use()
1102 …// CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1fEvEEXadL_ZNS_1g… in use()
1108 class HIDDEN a {};
1115 // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test604testINS_1aENS_1bEEEvv in use()
1116 // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test604testINS_1aENS_1bEEEvv in use()
1119 // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test604testINS_1bENS_1aEEEvv in use()
1120 // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test604testINS_1bENS_1aEEEvv in use()
1143 template class HIDDEN Class1<int>;
1162 template class HIDDEN Class1<int>;
1169 enum HIDDEN E { E0 };
1182 // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test631A3fooILNS_1EE0EEEvv()
1183 // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test631A1BILNS_1EE0EE3fooEv()
1189 struct HIDDEN A {};
1195 // CHECK-LABEL: define weak_odr hidden void @_ZN6test641BINS_1AEE3fooEv()
1199 class HIDDEN A {};
1218 // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test651BINS_1AEE6funcT1IS1_EEvv()
1227 // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test651BINS_1AEE6InnerTIS1_E3fooEv()
1252 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test664barTINS_3fooEE3zedEv
1262 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test664barIIXadL_ZNS_1IEEEE3zedEv
1273 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test664barFIXadL_ZNS_1FEvEEE3zedEv
1290 // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test673barINS_3fooEE3zedEv
1315 namespace foo __attribute__((visibility("hidden"))) {
1318 // CHECK-HIDDEN-LABEL: define hidden void @_ZN6test693foo1fEv