[all-commits] [llvm/llvm-project] 2b0c5d: Introduce and use a new section type for the bb_ad...

Rahman Lavaee via All-commits all-commits at lists.llvm.org
Thu Oct 8 11:13:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b0c5d76a604c8d8b468e1ab6c36f3f495c80127
      https://github.com/llvm/llvm-project/commit/2b0c5d76a604c8d8b468e1ab6c36f3f495c80127
  Author: Rahman Lavaee <rahmanl at google.com>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

  Changed paths:
    M llvm/docs/Extensions.rst
    M llvm/include/llvm/BinaryFormat/ELF.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/BasicBlockSections.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/lib/MC/MCSectionELF.cpp
    M llvm/lib/Object/ELF.cpp
    M llvm/test/CodeGen/X86/basic-block-sections-labels-functions-sections.ll
    M llvm/test/CodeGen/X86/basic-block-sections-labels.ll
    A llvm/test/MC/AsmParser/llvm_section_types.s

  Log Message:
  -----------
  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




More information about the All-commits mailing list