mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
6ee83c07a0
commit
471e0ba850
@ -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 {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user