[TargetParser] Disallow Global Constructors
authorArchibald Elliott <archibald.elliott@arm.com>
Sat, 4 Feb 2023 13:27:32 +0000 (13:27 +0000)
committerArchibald Elliott <archibald.elliott@arm.com>
Fri, 10 Mar 2023 15:53:14 +0000 (15:53 +0000)
commitcddc1b6b278399ea453903037f70e2cab356ead1
tree8a3c4dd3ae076e988ae770164b1089e1361c5500
parent291c390e37e4405e2842d740fcc67eae5769fb88
[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
llvm/lib/TargetParser/CMakeLists.txt