Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.12: revisit more efficient and more context-aware LineInfoNode #623

Open
aviatesk opened this issue Mar 26, 2024 · 0 comments
Open

v1.12: revisit more efficient and more context-aware LineInfoNode #623

aviatesk opened this issue Mar 26, 2024 · 0 comments

Comments

@aviatesk
Copy link
Member

aviatesk commented Mar 26, 2024

function linetable(arg, i::Integer; macro_caller::Bool=false)::Union{Expr,LineTypes}
lt = linetable(arg)
@static if VERSION v"1.12.0-DEV.173"
# TODO: decode the linetable at this frame efficiently by reimplementing this here
# TODO: get the contextual name from the parent, rather than returning "n/a" (which breaks Cthulhu)
return Base.IRShow.buildLineInfoNode(lt, :var"n/a", i)[1] # ignore all inlining / macro expansion / etc :(

I don't understand this commit -- do we now store some macro expansion context within debuginfo?

Originally posted by @aviatesk in #606 (comment)

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

No branches or pull requests

1 participant