about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-14 13:32:41 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-22 08:13:21 +1100
commit10c8b56af1d0157708c0a81e9d05e9402bc4fef2 (patch)
tree8aa60b418793467ec984c464c155aa527b8a1009 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parente16b52d4f05d4c41b3f7a3c2ba65fb6495979568 (diff)
downloadrust-10c8b56af1d0157708c0a81e9d05e9402bc4fef2.tar.gz
rust-10c8b56af1d0157708c0a81e9d05e9402bc4fef2.zip
Factor out common code in `PrintState`.
The AST and HIR versions of `State::print_ident` are textually
identical, but the types differ slightly. This commit factors out the
common code they both have by replacing `print_ident` with `ann_post`,
which is a smaller function that still captures the type difference.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions