1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[JITLink][MachO] Return an error when MachO TLV relocations are encountered.

MachO TLV relocations aren't supported yet. Error out rather than falling
through to llvm_unreachable.
This commit is contained in:
Lang Hames 2020-08-12 17:43:28 -07:00
parent 7aa42c2f0c
commit 03af0b44e9

View File

@ -339,6 +339,9 @@ private:
assert(TargetSymbol && "No target symbol from parsePairRelocation?");
break;
}
case PCRel32TLV:
return make_error<JITLinkError>(
"MachO TLV relocations not yet supported");
default:
llvm_unreachable("Special relocation kind should not appear in "
"mach-o file");