OSDN Git Service

MachO: trap unreachable instructions
authorTim Northover <tnorthover@apple.com>
Fri, 13 Apr 2018 22:25:20 +0000 (22:25 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 13 Apr 2018 22:25:20 +0000 (22:25 +0000)
commit3352f5142d61f0f784ec1ec946ae58d1dd630888
tree4d157e965a4421b7ab2d91803eea52f48a45a0fa
parenta68402c36cc5f8dabcb1d1602ad9afe3b49b0705
MachO: trap unreachable instructions

Debugability is more important than saving 4 bytes to let us to fall
through to nonense.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330073 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
lib/Target/AArch64/AArch64TargetMachine.cpp
lib/Target/ARM/ARMTargetMachine.cpp
lib/Target/X86/X86TargetMachine.cpp
test/CodeGen/AArch64/macho-trap.ll [new file with mode: 0644]
test/CodeGen/ARM/fast-isel-shift-materialize.ll
test/CodeGen/ARM/macho-trap.ll [new file with mode: 0644]
test/CodeGen/Thumb2/thumb2-ifcvt2.ll
test/CodeGen/X86/avx512-fsel.ll
test/CodeGen/X86/br-fold.ll
test/CodeGen/X86/eh-frame-unreachable.ll
test/CodeGen/X86/empty-functions.ll
test/CodeGen/X86/macho-trap.ll [new file with mode: 0644]
test/CodeGen/X86/pr34421.ll
test/MC/MachO/ARM/empty-function-nop.ll