| ... | ... | @@ -3127,14 +3127,14 @@ pub fn errNote( |
| 3127 | 3127 | /// Deprecated. There is no global target for a Zig Compilation Unit. Instead, |
| 3128 | 3128 | /// look up the target based on the Module that contains the source code being |
| 3129 | 3129 | /// analyzed. |
| 3130 | | pub fn getTarget(zcu: Module) Target { |
| 3130 | pub fn getTarget(zcu: *const Zcu) Target { |
| 3131 | 3131 | return zcu.root_mod.resolved_target.result; |
| 3132 | 3132 | } |
| 3133 | 3133 | |
| 3134 | 3134 | /// Deprecated. There is no global optimization mode for a Zig Compilation |
| 3135 | 3135 | /// Unit. Instead, look up the optimization mode based on the Module that |
| 3136 | 3136 | /// contains the source code being analyzed. |
| 3137 | | pub fn optimizeMode(zcu: Module) std.builtin.OptimizeMode { |
| 3137 | pub fn optimizeMode(zcu: *const Zcu) std.builtin.OptimizeMode { |
| 3138 | 3138 | return zcu.root_mod.optimize_mode; |
| 3139 | 3139 | } |
| 3140 | 3140 | |
| ... | ... | @@ -3203,7 +3203,7 @@ pub const Feature = enum { |
| 3203 | 3203 | separate_thread, |
| 3204 | 3204 | }; |
| 3205 | 3205 | |
| 3206 | | pub fn backendSupportsFeature(zcu: Module, comptime feature: Feature) bool { |
| 3206 | pub fn backendSupportsFeature(zcu: *const Zcu, comptime feature: Feature) bool { |
| 3207 | 3207 | const backend = target_util.zigBackend(zcu.root_mod.resolved_target.result, zcu.comp.config.use_llvm); |
| 3208 | 3208 | return target_util.backendSupportsFeature(backend, feature); |
| 3209 | 3209 | } |