Skip to content

Commit 93a0557

Browse files
committed
Add isptr and isfieldatomic
1 parent cb503ee commit 93a0557

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/juliac/abi_export.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ function emit_field_info!(ctx::TypeEmitter, @nospecialize(dt::DataType), field::
8686
print(ctx.io, "{")
8787
print(ctx.io, " \"name\": ", field_name_json(dt, field), ",")
8888
print(ctx.io, " \"type_id\": ", type_id, ",")
89-
print(ctx.io, " \"offset\": ", desc.offset)
89+
print(ctx.io, " \"offset\": ", desc.offset, ",")
90+
print(ctx.io, " \"isptr\": ", desc.isptr, ",")
91+
print(ctx.io, " \"isfieldatomic\": ", Base.isfieldatomic(dt, field))
9092
print(ctx.io, " }")
9193
end
9294

0 commit comments

Comments
 (0)