]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/d/types.cc
d: Add `@visibility' and `@hidden' attributes.
[thirdparty/gcc.git] / gcc / d / types.cc
index 0926715b7dcc2c3063d58b2ebe3a35d5ad422c09..b706c91560e380d484b33d991e182334b6a6fbaa 100644 (file)
@@ -1180,6 +1180,7 @@ public:
        /* Put out all fields.  */
        layout_aggregate_type (t->sym, t->ctype, t->sym);
        build_type_decl (t->ctype, t->sym);
+       set_visibility_for_decl (t->ctype, t->sym);
        apply_user_attributes (t->sym, t->ctype);
        finish_aggregate_type (structsize, alignsize, t->ctype);
       }
@@ -1224,6 +1225,7 @@ public:
     /* Put out all fields, including from each base class.  */
     layout_aggregate_type (t->sym, basetype, t->sym);
     build_type_decl (basetype, t->sym);
+    set_visibility_for_decl (basetype, t->sym);
     apply_user_attributes (t->sym, basetype);
     finish_aggregate_type (t->sym->structsize, t->sym->alignsize, basetype);