[all-commits] [llvm/llvm-project] 34cd06: [BasicBlockSections] Make sure that the labels for...

Rahman Lavaee via All-commits all-commits at lists.llvm.org
Wed Oct 7 13:23:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 34cd06a9b3bddaa7a989c606bbf1327ee651711c
      https://github.com/llvm/llvm-project/commit/34cd06a9b3bddaa7a989c606bbf1327ee651711c
  Author: Rahman Lavaee <rahmanl at google.com>
  Date:   2020-10-07 (Wed, 07 Oct 2020)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    A llvm/test/CodeGen/X86/basic-block-sections-blockaddress-taken.ll

  Log Message:
  -----------
  [BasicBlockSections] Make sure that the labels for address-taken blocks are emitted after switching the seciton.

Currently, AsmPrinter code is organized in a way in which the labels of address-taken blocks are emitted in the previous section, which makes the relocation incorrect.
This patch reorganizes the code to switch to the basic block section before handling address-taken blocks.

Reviewed By: snehasish, MaskRay

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




More information about the All-commits mailing list