about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-29 15:08:43 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-11 10:04:47 +1100
commit22b534de4f75bbd6025b3f092892aacdd6da0437 (patch)
tree3472ce97b8d1983c7a66d5da186c6d287d4b2d93 /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
parent7e452c123c5acea813130a9519b34f83795cb856 (diff)
downloadrust-22b534de4f75bbd6025b3f092892aacdd6da0437.tar.gz
rust-22b534de4f75bbd6025b3f092892aacdd6da0437.zip
Rearrange `default_configuration` and `CheckCfg::fill_well_known`.
There are comments saying these two functions should be kept in sync,
but they have very different structures, process symbols in different
orders, and there are some inconsistencies.

This commit reorders them so they're both mostly processing symbols in
alphabetical order, which makes cross-checking them a lot easier. The
commit also adds some macros to factor out repetitive code patterns.
Plus it adds `sanitizer_cfi_normalize_{integers,pointers}` to
`fill_well_known`, which were missing.

The commit also moves the handling of `sym::test` out of
`build_configuration` into `default_configuration`, where all the other
symbols are handled.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
0 files changed, 0 insertions, 0 deletions