Skip to content

go-llvm: expose exact source-location APIs - #10

Merged
zhouguangyuan0718 merged 1 commit into
masterfrom
codex/debug-info-api
Aug 11, 2026
Merged

go-llvm: expose exact source-location APIs#10
zhouguangyuan0718 merged 1 commit into
masterfrom
codex/debug-info-api

Conversation

@zhouguangyuan0718

Copy link
Copy Markdown

Summary

  • map DW_LANG_Go through the LLVM C API enum instead of using the raw DWARF encoding
  • expose compile-unit emission kinds so Go can request line-tables-only metadata
  • expose exact DILocation creation and builder get, set, and clear operations needed to preserve inlined-at chains without location leakage
  • add binding tests for Go language metadata, line-tables-only emission, and exact debug-location state

Scope

These are the minimal bindings required to feed pcfile, pcline, and pcinline generation. This PR does not add type, variable, dbg.declare, or target-object DWARF APIs.

Validation

  • GOENV=off go test -tags="llvm23 dynamicllvm" ./...

Related

@zhouguangyuan0718
zhouguangyuan0718 merged commit 65c568f into master Aug 11, 2026
1 check passed
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