1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test
Mandeep Singh Grang fad0fd9a71 [RISCV] Use init_array instead of ctors for RISCV target, by default
Summary:
LLVM defaults to the newer .init_array/.fini_array scheme for static
constructors rather than the less desirable .ctors/.dtors (the UseCtors
flag defaults to false). This wasn't being respected in the RISC-V
backend because it fails to call TargetLoweringObjectFileELF::InitializeELF with the the appropriate
flag for UseInitArray.
This patch fixes this by implementing RISCVELFTargetObjectFile and overriding its Initialize method to call
InitializeELF(TM.Options.UseInitArray).

Reviewers: asb, apazos

Reviewed By: asb

Subscribers: mgorny, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, kito-cheng, shiva0217, llvm-commits

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

llvm-svn: 328433
2018-03-24 18:37:19 +00:00
..
Analysis
Assembler
Bindings
Bitcode
BugPoint
CodeGen [RISCV] Use init_array instead of ctors for RISCV target, by default 2018-03-24 18:37:19 +00:00
DebugInfo [DEBUGINFO] Add flag for DWARF2 to use sections as references. 2018-03-23 13:35:54 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [HWASan] Port HWASan to Linux x86-64 (LLVM) 2018-03-23 17:57:54 +00:00
Integer
JitListener
Linker
LTO
MC Add REQUIRES lines for the targets being checked in this test. 2018-03-24 02:56:58 +00:00
Object
ObjectYAML
Other [PM][FunctionAttrs] add NoUnwind attribute inference to PostOrderFunctionAttrs pass 2018-03-23 21:46:16 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86
tools [X86][Btver2] Cleanup TEST instructions to use JFPA (+JFPX on ymms) function unit 2018-03-23 17:59:22 +00:00
Transforms [InstCombine] peek through FP casts for sign-bit compares (PR36682) 2018-03-24 15:45:02 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh