Skip to content

[MIR] Implement debug info #31005

Closed
@nagisa

Description

@nagisa

Currently we do not emit any debuginfo from the MIR translator.

It doesn’t seem like there should be many issues implementing support, other than DebugLoc wanting a ast::NodeId, which eventually gets passed down to trans::debuginfo::metadata::scope_metadata.

Precondition to this work is to either decouple trans::debuginfo and its DIScope-building-related functionality from the NodeId or create a independent code for MIR’s use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlA-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions