Fold a llvm_unreachable into an assert. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2015-03-20 13:50:15 +00:00
parent ddcc06d824
commit c09121b93b

View File

@ -174,7 +174,8 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
break;
}
}
} else if (getEMachine() == ELF::EM_386) {
} else {
assert(getEMachine() == ELF::EM_386 && "Unsupported ELF machine type.");
if (IsPCRel) {
switch ((unsigned)Fixup.getKind()) {
default:
@ -286,8 +287,7 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
break;
}
}
} else
llvm_unreachable("Unsupported ELF machine type.");
}
return Type;
}