diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-17 20:07:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-17 20:07:03 +0100 |
| commit | 97743d9d8088ae00198a14b66ab5115953b9b33d (patch) | |
| tree | 12f4e12398fa7fbe4178dfef97af1daae46f41a9 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 32d85c0b5ab357a3f7cdba4fb43b8cc678e44c30 (diff) | |
| parent | 9a79ab6c0b50e993408e0afd33a5c5085e1fffc1 (diff) | |
| download | rust-97743d9d8088ae00198a14b66ab5115953b9b33d.tar.gz rust-97743d9d8088ae00198a14b66ab5115953b9b33d.zip | |
Rollup merge of #92729 - michaelwoerister:remove-unused-span-debuginfo, r=petrochenkov
rustc_codegen_llvm: Remove (almost) unused span parameter from many functions in metadata.rs
Many functions and intermediate data structures in `rustc_codegen_llvm/src/debuginfo/metadata.rs` take a span parameter that is only used for providing a span to a `span_bug!()` invocation, in case the debuginfo typemap gets corrupted. However, this span does not really convey useful information as it just points to the first point a type is used -- and half of the time is initialized to `DUMMY_SP`.
This PR removes this span parameter from the module.
It also removes the following unused parameters from `composite_type_metadata()` together with an outdated comment:
```rust
// Ignore source location information as long as it
// can't be reconstructed for non-local crates.
_file_metadata: &'ll DIFile,
_definition_span: Span,
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
