Remove unused variable.
[oota-llvm.git] / lib / CodeGen / MachineFunction.cpp
index 8bef55effa2df28ca0340d29f140fdcca97175c1..bfdd738fc3f7da92abc3c076601a26a5a51292bd 100644 (file)
@@ -528,7 +528,6 @@ unsigned MachineJumpTableInfo::getEntrySize(const TargetData &TD) const {
   // The size of a jump table entry is 4 bytes unless the entry is just the
   // address of a block, in which case it is the pointer size.
   switch (getEntryKind()) {
-  default: llvm_unreachable("Unknown jump table encoding!");
   case MachineJumpTableInfo::EK_BlockAddress:
     return TD.getPointerSize();
   case MachineJumpTableInfo::EK_GPRel64BlockAddress:
@@ -540,6 +539,7 @@ unsigned MachineJumpTableInfo::getEntrySize(const TargetData &TD) const {
   case MachineJumpTableInfo::EK_Inline:
     return 0;
   }
+  llvm_unreachable("Unknown jump table encoding!");
 }
 
 /// getEntryAlignment - Return the alignment of each entry in the jump table.
@@ -548,7 +548,6 @@ unsigned MachineJumpTableInfo::getEntryAlignment(const TargetData &TD) const {
   // entry is just the address of a block, in which case it is the pointer
   // alignment.
   switch (getEntryKind()) {
-  default: llvm_unreachable("Unknown jump table encoding!");
   case MachineJumpTableInfo::EK_BlockAddress:
     return TD.getPointerABIAlignment();
   case MachineJumpTableInfo::EK_GPRel64BlockAddress:
@@ -560,6 +559,7 @@ unsigned MachineJumpTableInfo::getEntryAlignment(const TargetData &TD) const {
   case MachineJumpTableInfo::EK_Inline:
     return 1;
   }
+  llvm_unreachable("Unknown jump table encoding!");
 }
 
 /// createJumpTableIndex - Create a new jump table entry in the jump table info.