Add 'llvm_unreachable' to passify GCC's understanding of the constraints
authorChandler Carruth <chandlerc@gmail.com>
Tue, 10 Jan 2012 18:08:01 +0000 (18:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 10 Jan 2012 18:08:01 +0000 (18:08 +0000)
commit732f05c41f177a0bc4d47e93a5d02120f146cb4c
treebdc90d2b58b83e7c4936cc92c152e1cb7ea34056
parent38fdb7d9fc40e9f29c3156b6625cac8d91d562e1
Add 'llvm_unreachable' to passify GCC's understanding of the constraints
of several newly un-defaulted switches. This also helps optimizers
(including LLVM's) recognize that every case is covered, and we should
assume as much.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147861 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/Bitcode/BitCodes.h
include/llvm/Target/TargetLowering.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/CodeGen/GCMetadata.cpp
lib/CodeGen/LLVMTargetMachine.cpp
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/CodeGen/Spiller.cpp
lib/MC/MCExpr.cpp
lib/Support/APFloat.cpp
lib/Target/TargetLoweringObjectFile.cpp
lib/VMCore/Verifier.cpp