[all-commits] [llvm/llvm-project] 21aa10: Reland "Do not create LLVM IR `constant`s for obje...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Tue May 25 07:56:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21aa107eb79f8ddc5e7ca4e8f3476338dfa90049
      https://github.com/llvm/llvm-project/commit/21aa107eb79f8ddc5e7ca4e8f3476338dfa90049
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2021-05-25 (Tue, 25 May 2021)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/CodeGenCXX/clang-sections-1.cpp
    A clang/test/CodeGenCXX/const-dynamic-init.cpp

  Log Message:
  -----------
  Reland "Do not create LLVM IR `constant`s for objects with dynamic initialisation"

This relands commit 13dd65b3a1a3ac049b5f3a9712059f7c61649bea.

The original commit contained a test, which failed when compiled
for a MACH-O target.

This patch changes the test to run for x86_64-linux instead of
`%itanium_abi_triple`, to avoid having invalid syntax for MACH-O
sections. The patch itself does not care about section attribute
syntax and a x86 backend does not even need to be included in the
build.

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




More information about the All-commits mailing list