| ... | ... | @@ -1787,6 +1787,22 @@ pub const Object = struct { |
| 1787 | 1787 | global_index.toConst(), |
| 1788 | 1788 | ); |
| 1789 | 1789 | try alias_index.rename(exp_name, &o.builder); |
| 1790 | |
| 1791 | const alias_global_index = alias_index.ptrConst(&o.builder).global; |
| 1792 | alias_global_index.setUnnamedAddr(.default, &o.builder); |
| 1793 | if (comp.config.dll_export_fns) |
| 1794 | alias_global_index.setDllStorageClass(.dllexport, &o.builder); |
| 1795 | alias_global_index.setLinkage(switch (first_export.opts.linkage) { |
| 1796 | .internal => unreachable, |
| 1797 | .strong => .external, |
| 1798 | .weak => .weak_odr, |
| 1799 | .link_once => .linkonce_odr, |
| 1800 | }, &o.builder); |
| 1801 | alias_global_index.setVisibility(switch (first_export.opts.visibility) { |
| 1802 | .default => .default, |
| 1803 | .hidden => .hidden, |
| 1804 | .protected => .protected, |
| 1805 | }, &o.builder); |
| 1790 | 1806 | } |
| 1791 | 1807 | } |
| 1792 | 1808 | |