aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorRahman Lavaee <rahmanl@google.com>2023-08-18 18:16:30 +0000
committerRahman Lavaee <rahmanl@google.com>2023-08-20 18:29:47 +0000
commit69e47deca97b9a7f7394e5472095ee32e46f1831 (patch)
tree68e5163321b63dcac72fdc0a89990dae19545250 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent0db1ae3ed111a213e95e2317c3b4457c0f8826c1 (diff)
downloadllvm-69e47deca97b9a7f7394e5472095ee32e46f1831.zip
llvm-69e47deca97b9a7f7394e5472095ee32e46f1831.tar.gz
llvm-69e47deca97b9a7f7394e5472095ee32e46f1831.tar.bz2
[Propeller] Deprecate Codegen paths for SHT_LLVM_BB_ADDR_MAP version 1.
This patch removes the `getBBIDOrNumber` which was introduced to allow emitting version 1. Reviewed By: shenhan Differential Revision: https://reviews.llvm.org/D158299
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 8e7b2d7..280ced6 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -1736,11 +1736,6 @@ bool MachineBasicBlock::sizeWithoutDebugLargerThan(unsigned Limit) const {
return false;
}
-unsigned MachineBasicBlock::getBBIDOrNumber() const {
- uint8_t BBAddrMapVersion = getParent()->getContext().getBBAddrMapVersion();
- return BBAddrMapVersion < 2 ? getNumber() : *getBBID();
-}
-
const MBBSectionID MBBSectionID::ColdSectionID(MBBSectionID::SectionType::Cold);
const MBBSectionID
MBBSectionID::ExceptionSectionID(MBBSectionID::SectionType::Exception);