aboutsummaryrefslogtreecommitdiff
path: root/std/coff.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-08-29 19:00:24 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-08-29 19:00:24 -0400
commit686663239af6afd8dea814a9fe6a8885f06d6cb3 (patch)
treec272fddf103f5466f3a900b996ecdbfaf7393cd6 /std/coff.zig
parentf1b71053de6c5e71e2e1f73daeaff29280b69350 (diff)
downloadzig-686663239af6afd8dea814a9fe6a8885f06d6cb3.tar.gz
zig-686663239af6afd8dea814a9fe6a8885f06d6cb3.zip
printing info from the ModuleInfo substream of DebugInfo
Diffstat (limited to 'std/coff.zig')
-rw-r--r--std/coff.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/coff.zig b/std/coff.zig
index 475b4fcbc1..cce001d618 100644
--- a/std/coff.zig
+++ b/std/coff.zig
@@ -41,7 +41,7 @@ pub const Coff = struct {
pub fn loadHeader(self: *Coff) !void {
const pe_pointer_offset = 0x3C;
- var file_stream = io.FileInStream.init(&self.in_file);
+ var file_stream = io.FileInStream.init(self.in_file);
const in = &file_stream.stream;
var magic: [2]u8 = undefined;
@@ -126,7 +126,7 @@ pub const Coff = struct {
std.debug.warn("file offset {x}\n", file_offset);
try self.in_file.seekTo(file_offset + debug_dir.size);
- var file_stream = io.FileInStream.init(&self.in_file);
+ var file_stream = io.FileInStream.init(self.in_file);
const in = &file_stream.stream;
var cv_signature: [4]u8 = undefined; // CodeView signature
@@ -158,7 +158,7 @@ pub const Coff = struct {
self.sections = ArrayList(Section).init(self.allocator);
- var file_stream = io.FileInStream.init(&self.in_file);
+ var file_stream = io.FileInStream.init(self.in_file);
const in = &file_stream.stream;
var name: [8]u8 = undefined;
@@ -235,4 +235,4 @@ const SectionHeader = struct {
number_of_relocations: u16,
number_of_line_numbers: u16,
characteristics: u32,
-}; \ No newline at end of file
+};