1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 05:23:45 +02:00
llvm-mirror/test/CodeGen
Hans Wennborg 7edac5718c X86: Don't emit zero-byte functions on Windows
Empty functions can lead to duplicate entries in the Guard CF Function
Table of a binary due to multiple functions sharing the same RVA,
causing the kernel to refuse to load that binary.

We had a terrific bug due to this in Chromium.

It turns out we were already doing this for Mach-O in certain
situations. This patch expands the code for that in
AsmPrinter::EmitFunctionBody() and renames
TargetInstrInfo::getNoopForMachoTarget() to simply getNoop() since it
seems it was used for not just Mach-O anyway.

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

llvm-svn: 301040
2017-04-21 20:58:12 +00:00
..
AArch64 AArch64: add test for "fence singlethread" 2017-04-21 20:36:08 +00:00
AMDGPU AMDGPU: Temporarily disable packed inlinable literals (v2f16, v2i16) 2017-04-21 19:45:22 +00:00
ARM ARM: make sure we use all entries in a vector before forming a vpaddl. 2017-04-21 20:35:52 +00:00
AVR [AVR] Remove the 'multibyte' asm test 2017-04-19 12:13:45 +00:00
BPF [bpf] Fix memory offset check for loads and stores 2017-04-13 22:24:13 +00:00
Generic [Hexagon] Unxfail passing tests 2017-04-13 16:05:35 +00:00
Hexagon [Hexagon] Generate proper offset in opt-addr-mode 2017-04-19 15:15:51 +00:00
Inputs
Lanai
Mips [mips][msa] Mask vectors holding shift amounts 2017-04-20 13:26:46 +00:00
MIR MIR: Allow parsing of empty machine functions 2017-04-11 19:32:41 +00:00
MSP430
NVPTX Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
PowerPC [DAG] add splat vector support for 'xor' in SimplifyDemandedBits 2017-04-19 21:23:09 +00:00
SPARC
SystemZ Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
Thumb [Thumb1] The recently added tADCS and tSBCS pseudo-instructions were missing Uses = [CPSR] 2017-04-21 07:35:21 +00:00
Thumb2 Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
WebAssembly [WebAssembly] Fix WebAssemblyOptimizeReturned after r300367 2017-04-17 21:40:28 +00:00
WinEH
X86 X86: Don't emit zero-byte functions on Windows 2017-04-21 20:58:12 +00:00
XCore