stage2: add way to print values with types

This commit is contained in:
Veikka Tuominen
2022-03-21 14:48:47 +02:00
parent 3d8d6c0a6d
commit a31fe0ff12
9 changed files with 318 additions and 21 deletions

View File

@@ -165,7 +165,7 @@ pub fn generateSymbol(
const target = bin_file.options.target;
const endian = target.cpu.arch.endian();
log.debug("generateSymbol: ty = {}, val = {}", .{ typed_value.ty, typed_value.val });
log.debug("generateSymbol: ty = {}, val = {}", .{ typed_value.ty, typed_value.val.fmtDebug() });
if (typed_value.val.isUndefDeep()) {
const abi_size = try math.cast(usize, typed_value.ty.abiSize(target));