1
Fork 0
rust/compiler/rustc_codegen_llvm/src/debuginfo
Matt Weber 2f00b6affd Require type_map::stub callers to supply file information
This change attaches file information (`DIFile` reference and line
number) to struct debug info nodes.

Before:

```
; foo.ll
...
!5 = !DIFile(filename: "<unknown>", directory: "")
...
!16 = !DICompositeType(tag: DW_TAG_structure_type, name: "MyType", scope: !2, file: !5, size: 32, align: 32, elements: !17, templateParams: !19, identifier: "4cb373851db92e732c4cb5651b886dd0")
...
```

After:

```
; foo.ll
...
!3 = !DIFile(filename: "foo.rs", directory: "/home/matt/src/rust98678", checksumkind: CSK_SHA1, checksum: "bcb9f08512c8f3b8181ef4726012bc6807bc9be4")
...
!16 = !DICompositeType(tag: DW_TAG_structure_type, name: "MyType", scope: !2, file: !3, line: 3, size: 32, align: 32, elements: !17, templateParams: !19, identifier: "9e5968c7af39c148acb253912b7f409f")
...
```

Fixes #98678
2024-11-06 22:12:02 -05:00
..
metadata Require type_map::stub callers to supply file information 2024-11-06 22:12:02 -05:00
create_scope_map.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
doc.md fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
gdb.rs Consistently use safe wrapper function set_section 2024-10-30 11:38:20 +11:00
metadata.rs Require type_map::stub callers to supply file information 2024-11-06 22:12:02 -05:00
mod.rs compiler: Directly use rustc_abi in codegen 2024-11-03 12:30:32 -08:00
namespace.rs Use a type-safe helper to cast &str and &[u8] to *const c_char 2024-10-28 21:31:32 +11:00
utils.rs Use wide pointers consistenly across the compiler 2024-10-04 14:06:48 +02:00