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>2025-02-03 21:11:35 +0100
committerGitHub <noreply@github.com>2025-02-03 21:11:35 +0100
commit7e0118cdd257b886a94efa83234c6f400973894e (patch)
treebac3a04a5f2002871f34f1e2ab0ea84b088d391a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2c6c7f8ef2029712e82c96ecd614973faf537bd1 (diff)
parent00c61a81a0c6685d3d5470d5111eeb0159911836 (diff)
downloadrust-7e0118cdd257b886a94efa83234c6f400973894e.tar.gz
rust-7e0118cdd257b886a94efa83234c6f400973894e.zip
Rollup merge of #136430 - FedericoBruzzone:follow-up-136180, r=oli-obk
Use the type-level constant value `ty::Value` where needed

**Follow-up to #136180**

### Summary

This PR refactors functions to accept a single type-level constant value `ty::Value` instead of separate `ty::ValTree` and `ty::Ty` parameters:

- `valtree_to_const_value`: now takes `ty::Value`
- `pretty_print_const_valtree`: now takes `ty::Value`
- Uses `pretty_print_const_valtree` for formatting valtrees  when `visit_const_operand`
- Moves `try_to_raw_bytes` from `ty::Valtree` to `ty::Value`

---

r? ``@lukas-code`` ``@oli-obk``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions