1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib
Fangrui Song 7cb7bfede4 [IR] Disallow llvm.global_ctors and llvm.global_dtors of the 2-field form in textual format
The 3-field form was introduced by D3499 in 2014 and the legacy 2-field
form was planned to be removed in LLVM 4.0

For the textual format, this patch migrates the existing 2-field form to
use the 3-field form and deletes the compatibility code.
test/Verifier/global-ctors-2.ll checks we have a friendly error message.

For bitcode, lib/IR/AutoUpgrade UpgradeGlobalVariables will upgrade the
2-field form (add i8* null as the third field).

Reviewed By: rnk, dexonsmith

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

llvm-svn: 360742
2019-05-15 02:35:32 +00:00
..
Analysis [LVI][CVP] Add support for abs/nabs select pattern flavor 2019-05-14 18:53:47 +00:00
AsmParser Fix uninitialized variable analyzer warning. NFCI. 2019-05-11 11:08:24 +00:00
BinaryFormat [XCOFF] Add functionality for parsing AIX XCOFF object file headers 2019-04-04 00:53:21 +00:00
Bitcode [IR] Disallow llvm.global_ctors and llvm.global_dtors of the 2-field form in textual format 2019-05-15 02:35:32 +00:00
CodeGen [IR] Disallow llvm.global_ctors and llvm.global_dtors of the 2-field form in textual format 2019-05-15 02:35:32 +00:00
DebugInfo DebugInfo: Only move types out of type units if they're named or type united 2019-05-10 19:15:29 +00:00
Demangle llvm-undname: Fix assert-on->4GiB-string-literal, found by oss-fuzz 2019-04-24 16:09:38 +00:00
ExecutionEngine [JITLink][MachO] Honor the no-dead-strip flag on nlist entries. 2019-05-13 20:52:30 +00:00
Fuzzer
FuzzMutate
IR [IR] Disallow llvm.global_ctors and llvm.global_dtors of the 2-field form in textual format 2019-05-15 02:35:32 +00:00
IRReader
LineEditor
Linker
LTO [ThinLTO] Don't internalize weak writeable variables 2019-05-13 11:53:05 +00:00
MC [MC][ELF] Copy top 3 bits of st_other to .symver aliases 2019-05-10 17:09:25 +00:00
MCA [MCA] Remove dead assignment. NFC 2019-05-08 10:28:56 +00:00
Object AArch64: support binutils-like things on arm64_32. 2019-05-14 11:25:44 +00:00
ObjectYAML [COFF] Fix .bss section size bug in obj2yaml / yaml2obj 2019-05-10 21:53:44 +00:00
Option Option spell checking: Penalize delimiter flags if input has no argument 2019-05-01 16:45:15 +00:00
Passes [NewPM] Port HWASan and Kernel HWASan 2019-05-14 21:17:21 +00:00
ProfileData Fix a few -Werror warnings: 2019-04-30 21:44:21 +00:00
Remarks [Remarks] Add string deduplication using a string table 2019-04-24 00:06:24 +00:00
Support [APFloat] APFloat::Storage::Storage - fix use after move 2019-05-14 14:13:30 +00:00
TableGen TableGen: support #ifndef in addition to #ifdef. 2019-05-14 13:04:25 +00:00
Target [NFC] Reuse a helper function to eliminate duplicate code 2019-05-15 01:39:07 +00:00
Testing [Testing] Move clangd::Annotations to llvm testing support 2019-04-25 10:08:31 +00:00
TextAPI [TextAPI] Fix Symbol::dump which was failing to append the SymbolKind string. 2019-04-29 18:25:04 +00:00
ToolDrivers
Transforms [IR] Disallow llvm.global_ctors and llvm.global_dtors of the 2-field form in textual format 2019-05-15 02:35:32 +00:00
WindowsManifest
XRay Use llvm::stable_sort 2019-04-23 14:51:27 +00:00
CMakeLists.txt
LLVMBuild.txt