-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, Qumir does not emit debug symbols in LLVM IR. For source-level debugging, we need to propagate source locations (line/column info) through all compiler layers down to LLVM.
Design Ideas
- AST Annotation: Attach source location info (line, column, file) to all AST nodes during parsing (done)
- IR Propagation: Preserve location info in IR nodes during lowering and transformations.
- LLVM Metadata: At codegen, emit LLVM
!dbgmetadata for instructions, variables, and functions using DWARF standard. - Mapping Table: Maintain mapping from Qumir source lines to LLVM instructions for error reporting and debugging.
- Pragmas/Flags: Allow enabling/disabling debug info via pragma or compiler flag.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request