forked from OSchip/llvm-project
[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:
parent
24ea64e050
commit
94272611ac
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue