Add llvm_unreachable after fully-covered switches to appease GCC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alexey Samsonov 2014-03-20 07:30:40 +00:00
parent 6ee83c07a0
commit 471e0ba850
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ static MCSymbolRefExpr::VariantKind getAccessVariant(const MCExpr *Expr) {
return getAccessVariant(ABE->getLHS());
}
}
llvm_unreachable("unknown MCExpr kind");
}
MCSymbolRefExpr::VariantKind MCFixup::getAccessVariant() const {

View File

@ -74,6 +74,7 @@ static MCSymbolRefExpr::VariantKind getAccessVariant(const MCFixup &Fixup) {
case PPCMCExpr::VK_PPC_HIGHESTA:
return MCSymbolRefExpr::VK_PPC_HIGHESTA;
}
llvm_unreachable("unknown PPCMCExpr kind");
}
unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,