aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorRahman Lavaee <rahmanl@google.com>2020-10-08 11:12:40 -0700
committerRahman Lavaee <rahmanl@google.com>2020-10-08 11:13:19 -0700
commit2b0c5d76a604c8d8b468e1ab6c36f3f495c80127 (patch)
treeb34f6f7ad519a2adf66817defe51a4b2af9d3633 /llvm/lib/MC/MCObjectFileInfo.cpp
parent8f0658ae67da6a115daac5587cca42b2f47a2f6f (diff)
downloadllvm-2b0c5d76a604c8d8b468e1ab6c36f3f495c80127.zip
llvm-2b0c5d76a604c8d8b468e1ab6c36f3f495c80127.tar.gz
llvm-2b0c5d76a604c8d8b468e1ab6c36f3f495c80127.tar.bz2
Introduce and use a new section type for the bb_addr_map section.
This patch lets the bb_addr_map (renamed to __llvm_bb_addr_map) section use a special section type (SHT_LLVM_BB_ADDR_MAP) instead of SHT_PROGBITS. This would help parsers, dumpers and other tools to use the sh_type ELF field to identify this section rather than relying on string comparison on the section name. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D88199
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index ae7345c..fd22d72 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -1002,7 +1002,7 @@ MCObjectFileInfo::getBBAddrMapSection(const MCSection &TextSec) const {
Flags |= ELF::SHF_GROUP;
}
- return Ctx->getELFSection(".bb_addr_map", ELF::SHT_PROGBITS, Flags, 0,
- GroupName, MCSection::NonUniqueID,
+ return Ctx->getELFSection(".llvm_bb_addr_map", ELF::SHT_LLVM_BB_ADDR_MAP,
+ Flags, 0, GroupName, MCSection::NonUniqueID,
cast<MCSymbolELF>(TextSec.getBeginSymbol()));
}