[clang] [lld] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 20:01:14 PDT 2024
================
@@ -64,14 +64,16 @@ static lto::Config createConfig() {
c.Options.BBAddrMap = config->ltoBBAddrMap;
// Check if basic block sections must be used.
- // Allowed values for --lto-basic-block-sections are "all", "labels",
+ // Allowed values for --lto-basic-block-sections are "all",
// "<file name specifying basic block ids>", or none. This is the equivalent
// of -fbasic-block-sections= flag in clang.
if (!config->ltoBasicBlockSections.empty()) {
if (config->ltoBasicBlockSections == "all") {
c.Options.BBSections = BasicBlockSection::All;
} else if (config->ltoBasicBlockSections == "labels") {
- c.Options.BBSections = BasicBlockSection::Labels;
+ c.Options.BBAddrMap = true;
----------------
MaskRay wrote:
suggest that you create a separate change for lld/ELF.
If this is deprecated, we need a test for the warning message.
Please check other warnings for the style. We don't add the full stop.
https://github.com/llvm/llvm-project/pull/107494
More information about the cfe-commits
mailing list