aboutsummaryrefslogtreecommitdiff
path: root/lib/std/pdb.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-11-30 00:13:07 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-11-30 00:13:07 -0700
commit902df103c6151c257c90de9ba5f29f7f4b9dbea2 (patch)
tree16a522f3c8bbe34b56038d4810bf2487e32e2d85 /lib/std/pdb.zig
parent173d56213b60fc570b6ba3922ee1d40bbf0d0e36 (diff)
downloadzig-902df103c6151c257c90de9ba5f29f7f4b9dbea2.tar.gz
zig-902df103c6151c257c90de9ba5f29f7f4b9dbea2.zip
std lib API deprecations for the upcoming 0.9.0 release
See #3811
Diffstat (limited to 'lib/std/pdb.zig')
-rw-r--r--lib/std/pdb.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig
index a8d9161981..26688d028e 100644
--- a/lib/std/pdb.zig
+++ b/lib/std/pdb.zig
@@ -3,7 +3,6 @@ const io = std.io;
const math = std.math;
const mem = std.mem;
const os = std.os;
-const warn = std.debug.warn;
const coff = std.coff;
const fs = std.fs;
const File = std.fs.File;
@@ -656,7 +655,7 @@ pub const Pdb = struct {
const name_index = try reader.readIntLittle(u32);
if (name_offset > name_bytes.len)
return error.InvalidDebugInfo;
- const name = mem.spanZ(std.meta.assumeSentinel(name_bytes.ptr + name_offset, 0));
+ const name = mem.sliceTo(std.meta.assumeSentinel(name_bytes.ptr + name_offset, 0), 0);
if (mem.eql(u8, name, "/names")) {
break :str_tab_index name_index;
}
@@ -681,7 +680,7 @@ pub const Pdb = struct {
.S_LPROC32, .S_GPROC32 => {
const proc_sym = @ptrCast(*ProcSym, &module.symbols[symbol_i + @sizeOf(RecordPrefix)]);
if (address >= proc_sym.CodeOffset and address < proc_sym.CodeOffset + proc_sym.CodeSize) {
- return mem.spanZ(@ptrCast([*:0]u8, proc_sym) + @sizeOf(ProcSym));
+ return mem.sliceTo(@ptrCast([*:0]u8, proc_sym) + @sizeOf(ProcSym), 0);
}
},
else => {},