about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorMatt Weber <30441572+mweber15@users.noreply.github.com>2022-11-10 12:12:02 -0500
committerMatt Weber <30441572+mweber15@users.noreply.github.com>2024-11-06 22:12:02 -0500
commit2f00b6affda7b25cb2721422d7adad39154ce9d1 (patch)
treec32791b1dcf9b7a762dae1ce837691ec3579e02c /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parentc07aa1e17199e27f6f7ac8f3307bca7bda0084b6 (diff)
downloadrust-2f00b6affda7b25cb2721422d7adad39154ce9d1.tar.gz
rust-2f00b6affda7b25cb2721422d7adad39154ce9d1.zip
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
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions