[all-commits] [llvm/llvm-project] e0bf23: Let .llvm_bb_addr_map section use the same unique ...

Rahman Lavaee via All-commits all-commits at lists.llvm.org
Tue Dec 1 09:30:08 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e0bf2349303f6b40e3ddd5377ea08a5c0867ece4
      https://github.com/llvm/llvm-project/commit/e0bf2349303f6b40e3ddd5377ea08a5c0867ece4
  Author: Rahman Lavaee <rahmanl at google.com>
  Date:   2020-12-01 (Tue, 01 Dec 2020)

  Changed paths:
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/test/CodeGen/X86/basic-block-sections-labels.ll

  Log Message:
  -----------
  Let .llvm_bb_addr_map section use the same unique id as its associated .text section.

Currently, `llvm_bb_addr_map` sections are generated per section names because we use
the `LinkedToSymbol` argument of getELFSection. This will cause the address map tables of functions
grouped into the same section when `-function-sections=true -unique-section-names=false` which is not
the intended behaviour. This patch lets the unique id of every `.text` section propagate to the associated
`.llvm_bb_addr_map` section.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D92113




More information about the All-commits mailing list