aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-17 15:35:24 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-17 16:09:20 -0700
commit731c35f15a1469c9523b71476f1e069d5bcfd979 (patch)
tree00b0244c86df035ff721cb45216594426007ce96 /src/Compilation.zig
parent3d99fb3352eca9da68b6033ad22a166ed68ed36a (diff)
downloadzig-731c35f15a1469c9523b71476f1e069d5bcfd979.tar.gz
zig-731c35f15a1469c9523b71476f1e069d5bcfd979.zip
stage2: get rid of NameHash
Previously, stage2 used a global decl_table for all Decl objects, keyed by a 16-byte name hash that was hopefully unique. Now, there is a tree of Namespace objects that own their named Decl objects.
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index ff50ce8d6c..a5c365fa40 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -3563,7 +3563,6 @@ fn buildOutputFromZig(
.handle = special_dir,
},
.root_src_path = src_basename,
- .namespace_hash = Package.root_namespace_hash,
};
const root_name = src_basename[0 .. src_basename.len - std.fs.path.extension(src_basename).len];
const target = comp.getTarget();