aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-01-10 09:32:03 -0800
committerGitHub <noreply@github.com>2025-01-10 09:32:03 -0800
commitcc88a5e61578e58afdd8ef4e9f1b7cd10d77fba3 (patch)
treefebdf7d10cc815082f419e47df667beac9f7d180 /clang/lib/CodeGen/CodeGenModule.cpp
parentbeba4b08f72152abbb7d26df024f0d9338a7038b (diff)
downloadllvm-cc88a5e61578e58afdd8ef4e9f1b7cd10d77fba3.zip
llvm-cc88a5e61578e58afdd8ef4e9f1b7cd10d77fba3.tar.gz
llvm-cc88a5e61578e58afdd8ef4e9f1b7cd10d77fba3.tar.bz2
[lld-macho,NFC] Switch to increasing priorities
--order_file, call graph profile, and BalancedPartitioning currently build the section order vector by decreasing priority (from SIZE_MAX to 0). However, it's conventional to use an increasing key (see OutputSection::inputOrder). Switch to increasing priorities, remove the global variable highestAvailablePriority, and remove the highestAvailablePriority parameter from BPSectionOrderer. Change size_t to int. This improves consistenty with the ELF and COFF ports. The ELF port utilizes negative priorities for --symbol-ordering-file and call graph profile, and non-negative priorities for --shuffle-sections (no Mach-O counterpart yet). Pull Request: https://github.com/llvm/llvm-project/pull/121727
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions