mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c602b726a8
commit
e883ee78f2
@ -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…
x
Reference in New Issue
Block a user