Go to file
Hans Wennborg cb3e810714 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
clang Add comments to the diagnostic kinds in Diagnostic.td. 2017-04-21 20:55:00 +00:00
clang-tools-extra [Clangd] Failed to decode params using 1.x-compatible request message 2017-04-21 15:51:23 +00:00
compiler-rt [asan] Optimize strchr for strict_string_checks=false 2017-04-21 19:39:46 +00:00
debuginfo-tests Add additional CHECKs to safestack.c. 2017-04-17 17:57:05 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx update XFAIL comments with more details 2017-04-21 03:09:40 +00:00
libcxxabi Fix PR25874 - cxa_thread_atexit_test.pass.cpp has an incorrect XFAIL. 2017-04-20 23:40:35 +00:00
libunwind [CMake][libunwind] Fix the -target and -gcc-toolchain flag handling 2017-04-16 06:08:44 +00:00
lld COFF: add support for CONSTANT exports 2017-04-21 18:05:46 +00:00
lldb Correct the names of some target conditional defines in debugserver. 2017-04-21 20:19:28 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm X86: Don't emit zero-byte functions on Windows 2017-04-21 20:58:12 +00:00
openmp Fix crash in invoking microtask on ios arm64. 2017-04-17 11:58:20 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [CMake] Link unittests only against libLLVM.so, if available. 2017-04-21 19:03:51 +00:00