aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-13 15:45:08 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-07-20 12:19:16 -0700
commitc09b973ec25f328f5e15e9e6eed4da7f5e4634af (patch)
tree3e6d262995f7c4b1760d154078875681082b4110 /src/link
parent0f38f686964664f68e013ec3c63cfe655001f165 (diff)
downloadzig-c09b973ec25f328f5e15e9e6eed4da7f5e4634af.tar.gz
zig-c09b973ec25f328f5e15e9e6eed4da7f5e4634af.zip
stage2: compile error fixes for AIR memory layout branch
Now the branch is compiling again, provided that one uses `-Dskip-non-native`, but many code paths are disabled. The code paths can now be re-enabled one at a time and updated to conform to the new AIR memory layout.
Diffstat (limited to 'src/link')
-rw-r--r--src/link/Elf.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/link/Elf.zig b/src/link/Elf.zig
index 0d05b97846..c93f04f618 100644
--- a/src/link/Elf.zig
+++ b/src/link/Elf.zig
@@ -2519,6 +2519,9 @@ pub fn updateDecl(self: *Elf, module: *Module, decl: *Module.Decl) !void {
var code_buffer = std.ArrayList(u8).init(self.base.allocator);
defer code_buffer.deinit();
+ var dbg_line_buffer = std.ArrayList(u8).init(self.base.allocator);
+ defer dbg_line_buffer.deinit();
+
var dbg_info_buffer = std.ArrayList(u8).init(self.base.allocator);
defer dbg_info_buffer.deinit();