diff options
author | Rahman Lavaee <rahmanl@google.com> | 2024-09-25 12:03:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 12:03:38 -0700 |
commit | 1911a50fae8a441b445eb835b98950710d28fc88 (patch) | |
tree | cfd1d869edbc8f8886b23fe942b8d0b24fdbd9fb /llvm/lib/CodeGen/BasicBlockSections.cpp | |
parent | 6786928c4fe1f9daf720d3b604987de2b013e70b (diff) | |
download | llvm-1911a50fae8a441b445eb835b98950710d28fc88.zip llvm-1911a50fae8a441b445eb835b98950710d28fc88.tar.gz llvm-1911a50fae8a441b445eb835b98950710d28fc88.tar.bz2 |
Deprecate the `-fbasic-block-sections=labels` option. (#107494)
This feature is supported via the newer option
`-fbasic-block-address-map`. Using the old option still works by
delegating to the newer option, while a warning is printed to show
deprecation.
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BasicBlockSections.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/BasicBlockSections.cpp b/llvm/lib/CodeGen/BasicBlockSections.cpp index 0071284..1eedfc4 100644 --- a/llvm/lib/CodeGen/BasicBlockSections.cpp +++ b/llvm/lib/CodeGen/BasicBlockSections.cpp @@ -311,11 +311,6 @@ bool BasicBlockSections::handleBBSections(MachineFunction &MF) { // original layout positions and finding the original fallthroughs. MF.RenumberBlocks(); - if (BBSectionsType == BasicBlockSection::Labels) { - MF.setBBSectionsType(BBSectionsType); - return true; - } - DenseMap<UniqueBBID, BBClusterInfo> FuncClusterInfo; if (BBSectionsType == BasicBlockSection::List) { auto [HasProfile, ClusterInfo] = @@ -382,8 +377,6 @@ bool BasicBlockSections::handleBBSections(MachineFunction &MF) { // avoids the need to store basic block IDs in the BB address map section, since // they can be determined implicitly. bool BasicBlockSections::handleBBAddrMap(MachineFunction &MF) { - if (MF.getTarget().getBBSectionsType() == BasicBlockSection::Labels) - return false; if (!MF.getTarget().Options.BBAddrMap) return false; MF.RenumberBlocks(); |