[all-commits] [llvm/llvm-project] cddc1b: [TargetParser] Disallow Global Constructors

Sam Elliott via All-commits all-commits at lists.llvm.org
Fri Mar 10 07:53:39 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cddc1b6b278399ea453903037f70e2cab356ead1
      https://github.com/llvm/llvm-project/commit/cddc1b6b278399ea453903037f70e2cab356ead1
  Author: Archibald Elliott <archibald.elliott at arm.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M llvm/lib/TargetParser/CMakeLists.txt

  Log Message:
  -----------
  [TargetParser] Disallow Global Constructors

Global Constructors are disallowed in the Support library. The
TargetParser library is likely to go along with the Support library in
most uses, because it contains llvm::Triple, so lets pre-emptively add
the same rule, rather than getting caught out later.

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




More information about the All-commits mailing list