aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorAlex Cameron <ascottcameron@gmail.com>2020-11-19 19:57:22 +1100
committerAlex Cameron <ascottcameron@gmail.com>2020-12-23 01:14:35 +1100
commitc87da2f45afedb33b5d1531ee0e4f67675aa9f78 (patch)
treecf00a715064bfedbcb302393c8a7d7a776d1bc17 /src/link
parentaba273d7313ece312cbf747ab5808063a6d8a1b4 (diff)
downloadzig-c87da2f45afedb33b5d1531ee0e4f67675aa9f78.tar.gz
zig-c87da2f45afedb33b5d1531ee0e4f67675aa9f78.zip
Remove redundant emit_h member in Compilation struct.
Diffstat (limited to 'src/link')
-rw-r--r--src/link/C.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/link/C.zig b/src/link/C.zig
index 0906482dd1..839c8cabfe 100644
--- a/src/link/C.zig
+++ b/src/link/C.zig
@@ -17,10 +17,12 @@ pub const Header = struct {
buf: std.ArrayList(u8),
need_stddef: bool = false,
need_stdint: bool = false,
+ emit_loc: ?Compilation.EmitLoc,
- pub fn init(allocator: *Allocator) Header {
+ pub fn init(allocator: *Allocator, emit_loc: ?Compilation.EmitLoc) Header {
return .{
.buf = std.ArrayList(u8).init(allocator),
+ .emit_loc = emit_loc,
};
}
@@ -81,7 +83,7 @@ pub fn openPath(allocator: *Allocator, sub_path: []const u8, options: link.Optio
.allocator = allocator,
},
.main = std.ArrayList(u8).init(allocator),
- .header = Header.init(allocator),
+ .header = Header.init(allocator, null),
.constants = std.ArrayList(u8).init(allocator),
.called = std.StringHashMap(void).init(allocator),
};