]> granicus.if.org Git - llvm/commit
Re-commit r301040 "X86: Don't emit zero-byte functions on Windows"
authorHans Wennborg <hans@hanshq.net>
Fri, 21 Apr 2017 21:48:41 +0000 (21:48 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 21 Apr 2017 21:48:41 +0000 (21:48 +0000)
commit960a40ec576f07b6fb196cc91d08abbcffbc04c0
tree5c1539e0087d7d2a7601a197aec2a3769b421800
parent94f347bd3316685715fc98d9fdf2927da5149ed0
Re-commit r301040 "X86: Don't emit zero-byte functions on Windows"

In addition to the original commit, tighten the condition for when to
pad empty functions to COFF Windows.  This avoids running into problems
when targeting e.g. Win32 AMDGPU, which caused test failures when this
was committed initially.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301047 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/TargetInstrInfo.cpp
lib/Target/AArch64/AArch64InstrInfo.cpp
lib/Target/AArch64/AArch64InstrInfo.h
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/ARM/ARMInstrInfo.cpp
lib/Target/ARM/ARMInstrInfo.h
lib/Target/ARM/ARMMCInstLower.cpp
lib/Target/ARM/Thumb1InstrInfo.cpp
lib/Target/ARM/Thumb1InstrInfo.h
lib/Target/ARM/Thumb2InstrInfo.cpp
lib/Target/ARM/Thumb2InstrInfo.h
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
test/CodeGen/X86/empty-function.ll [new file with mode: 0644]