about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-02-18 12:48:27 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-02-18 13:12:50 +1100
commite3316ae453a86eed28840a85b12df2ea1917aac7 (patch)
tree4981af5e3fe336cadc7ce5fb6afd787b9544838e /compiler/rustc_codegen_llvm/src
parenta1daa34ad005d0b34d30c878cb4e2e995346d300 (diff)
downloadrust-e3316ae453a86eed28840a85b12df2ea1917aac7.tar.gz
rust-e3316ae453a86eed28840a85b12df2ea1917aac7.zip
Improve `MirPatch` documentation and naming.
It's currently lacking comments. This commit adds some, which is useful
because there are some methods with non-obvious behaviour.

The commit also renames two things:
- `patch_map` becomes `term_patch_map`, because it's only about
  terminators.
- `is_patched` becomes `is_term_patched`, for the same reason.

(I would guess that originally `MirPatch` only handled terminators, and
then over time it expanded to allow other modifications, but these names
weren't updated.)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions