[Hexagon] Changing an llvm_unreachable to an assertion and returning 0. Relocations aren't implemented yet but we don't need to abort for this in release builds.

llvm-svn: 225043
This commit is contained in:
Colin LeMahieu 2014-12-31 15:57:38 +00:00
parent 24ea64e050
commit 94272611ac
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ HexagonMCCodeEmitter::getMachineOpValue(MCInst const &MI, MCOperand const &MO,
return MCT.getRegisterInfo()->getEncodingValue(MO.getReg());
if (MO.isImm())
return static_cast<unsigned>(MO.getImm());
llvm_unreachable("Only Immediates and Registers implemented right now");
assert(false && "Only Immediates and Registers implemented right now");
return 0;
}
MCSubtargetInfo const &HexagonMCCodeEmitter::getSubtargetInfo() const {