aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu.zig
diff options
context:
space:
mode:
authorkcbanner <kcbanner@gmail.com>2024-07-13 15:31:56 -0400
committerAndrew Kelley <andrew@ziglang.org>2024-07-13 13:44:39 -0700
commit11534aa34d6e9c66081eb2918bfaacbb21db0e56 (patch)
treebc7f5c2c921b8ce95cb422cf060052dc7d7af202 /src/Zcu.zig
parentd8c1c9ea6e5ba70e9d7e7ce9b6c6b85f08cd4bca (diff)
downloadzig-11534aa34d6e9c66081eb2918bfaacbb21db0e56.tar.gz
zig-11534aa34d6e9c66081eb2918bfaacbb21db0e56.zip
zcu: fixup incorrect pass-by-value of Zcu
Diffstat (limited to 'src/Zcu.zig')
-rw-r--r--src/Zcu.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Zcu.zig b/src/Zcu.zig
index 7351592ec1..6a9812d736 100644
--- a/src/Zcu.zig
+++ b/src/Zcu.zig
@@ -3127,14 +3127,14 @@ pub fn errNote(
/// Deprecated. There is no global target for a Zig Compilation Unit. Instead,
/// look up the target based on the Module that contains the source code being
/// analyzed.
-pub fn getTarget(zcu: Module) Target {
+pub fn getTarget(zcu: *const Zcu) Target {
return zcu.root_mod.resolved_target.result;
}
/// Deprecated. There is no global optimization mode for a Zig Compilation
/// Unit. Instead, look up the optimization mode based on the Module that
/// contains the source code being analyzed.
-pub fn optimizeMode(zcu: Module) std.builtin.OptimizeMode {
+pub fn optimizeMode(zcu: *const Zcu) std.builtin.OptimizeMode {
return zcu.root_mod.optimize_mode;
}
@@ -3203,7 +3203,7 @@ pub const Feature = enum {
separate_thread,
};
-pub fn backendSupportsFeature(zcu: Module, comptime feature: Feature) bool {
+pub fn backendSupportsFeature(zcu: *const Zcu, comptime feature: Feature) bool {
const backend = target_util.zigBackend(zcu.root_mod.resolved_target.result, zcu.comp.config.use_llvm);
return target_util.backendSupportsFeature(backend, feature);
}