aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2022-10-16 23:33:13 -0400
committerAndrew Kelley <andrew@ziglang.org>2022-10-17 07:55:28 -0400
commit1e963053d0ff67361b587b046a917375e963d5e9 (patch)
treec5a318eef4ee88c6539919335f35e6955f1b7f0d /src/codegen/llvm.zig
parentc010767311904177681280c6427eb360200df28f (diff)
downloadzig-1e963053d0ff67361b587b046a917375e963d5e9.tar.gz
zig-1e963053d0ff67361b587b046a917375e963d5e9.zip
tools: add lldb stage2 pretty printers
* Fix untagged struct names in debug info for llvm. * Factor out common stage2 pretty printer data. * Add lldb version of stage2 pretty printers.
Diffstat (limited to 'src/codegen/llvm.zig')
-rw-r--r--src/codegen/llvm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index cc18109270..b16fc76c01 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -2153,7 +2153,7 @@ pub const Object = struct {
));
}
- const union_name = if (layout.tag_size == 0) "AnonUnion" else name.ptr;
+ const union_name = if (layout.tag_size == 0) name.ptr else "AnonUnion";
const union_di_ty = dib.createUnionType(
compile_unit_scope,