Fix PR7174, a couple o Mips fixes:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 20 Jul 2010 08:37:04 +0000 (08:37 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 20 Jul 2010 08:37:04 +0000 (08:37 +0000)
commit46773793cbf18fa0fa4643c91d3b6f5c5bf15dd9
tree2958f0be55eb091397410c0afe6f502cc8280ef6
parent8be3291f5942e3ae4a5d66c480e7aabe2f771031
Fix PR7174, a couple o Mips fixes:

- Fix a typo for PIC check during jmp table lowering
- Also fix the "first jump table basic block is not
considered only reachable by fall through" problem, use this
ad-hoc solution until I come up with something better.

Patch by stetorvs@gmail.com

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108820 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
lib/Target/Mips/MipsISelLowering.cpp
test/CodeGen/Mips/2010-07-20-Switch.ll [new file with mode: 0644]