aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.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/CodeGen/BasicBlockSections.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/CodeGen/BasicBlockSections.cpp')
-rw-r--r--llvm/lib/CodeGen/BasicBlockSections.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/BasicBlockSections.cpp b/llvm/lib/CodeGen/BasicBlockSections.cpp
index adbe94a..5c47481 100644
--- a/llvm/lib/CodeGen/BasicBlockSections.cpp
+++ b/llvm/lib/CodeGen/BasicBlockSections.cpp
@@ -49,9 +49,9 @@
// ==================
//
// With -fbasic-block-sections=labels, we emit the offsets of BB addresses of
-// every function into a .bb_addr_map section. Along with the function symbols,
-// this allows for mapping of virtual addresses in PMU profiles back to the
-// corresponding basic blocks. This logic is implemented in AsmPrinter. This
+// every function into the .llvm_bb_addr_map section. Along with the function
+// symbols, this allows for mapping of virtual addresses in PMU profiles back to
+// the corresponding basic blocks. This logic is implemented in AsmPrinter. This
// pass only assigns the BBSectionType of every function to ``labels``.
//
//===----------------------------------------------------------------------===//