about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-03-01 12:00:43 +0100
committerGitHub <noreply@github.com>2022-03-01 12:00:43 +0100
commitc531b01e9d6c881344b4ec03a3102272107f4bba (patch)
tree93a3343ab2198ca0f0bceed26942448edea99889 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent6e5a6ffb14fc47051b0a23410c681ad6e4af045f (diff)
parent99a77798d3b78f3ce4e92ac6768110682ec8b664 (diff)
downloadrust-c531b01e9d6c881344b4ec03a3102272107f4bba.tar.gz
rust-c531b01e9d6c881344b4ec03a3102272107f4bba.zip
Rollup merge of #94359 - tmiasko:legacy-verbose-const, r=petrochenkov
Fix inconsistent symbol mangling of integers constants with -Zverbose

The `PrettyPrinter` changes formatting of array size and integer
constants based on `-Zverbose`, so its implementation cannot be used in
legacy symbol mangling.

Example symbol demangling before changes:

```console
$ cat a.rs
pub struct A<T>(T);
impl A<[u8; 128]> { pub fn f() {} }
$ rustc --crate-type=lib a.rs -Zverbose=n && nm -C ./liba.rlib
00000000 T a::A<[u8; 128]>::f
$ rustc --crate-type=lib a.rs -Zverbose=y && nm -C ./liba.rlib
00000000 T a::A<[u8; Const { ty. usize, val. Value(Scalar(0x0000000000000080)) }]>::f
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions