Skip to content

Complete the DIBuilder typed-handle surface on LLVMDIBuilderRef#268

Merged
tannergooding merged 1 commit into
dotnet:mainfrom
tannergooding:tannergooding-layer2-dibuilder-surface
Jul 16, 2026
Merged

Complete the DIBuilder typed-handle surface on LLVMDIBuilderRef#268
tannergooding merged 1 commit into
dotnet:mainfrom
tannergooding:tannergooding-layer2-dibuilder-surface

Conversation

@tannergooding

Copy link
Copy Markdown
Member

Completes the DIBuilder typed-handle surface on LLVMDIBuilderRef — all 53 LLVMDIBuilder*/ReplaceArrays C-API functions plus LLVMDisposeDIBuilder (exposed via IDisposable/Dispose, mirroring LLVMBuilderRef). Nothing skipped.

String- and array-carrying factories get both a convenience overload (string / T[]) and a core ReadOnlySpan<char> / ReadOnlySpan<LLVMMetadataRef> overload, following the existing CreateFile/CreateFunction/CreateSubroutineType pattern in the file: MarshaledString + (UIntPtr)Length for const char*/size_t pairs, fixed (LLVMMetadataRef* p = span) + (LLVMOpaqueMetadata**) cast + (uint)Length for array pairs. ReplaceArrays takes the in/out LLVMMetadataRef* as ref. int-typed bool params are kept faithful to the existing methods.

Interop-only; no generated-file edits. Builds clean (0 warnings), tests pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@tannergooding
tannergooding merged commit 7245cc3 into dotnet:main Jul 16, 2026
12 checks passed
@tannergooding
tannergooding deleted the tannergooding-layer2-dibuilder-surface branch July 16, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant