Skip to content

Commit adaadbf

Browse files
committed
[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.
1 parent bd2853f commit adaadbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ class MachOLinkGraphBuilder_x86_64 : public MachOLinkGraphBuilder {
339339
assert(TargetSymbol && "No target symbol from parsePairRelocation?");
340340
break;
341341
}
342+
case PCRel32TLV:
343+
return make_error<JITLinkError>(
344+
"MachO TLV relocations not yet supported");
342345
default:
343346
llvm_unreachable("Special relocation kind should not appear in "
344347
"mach-o file");

0 commit comments

Comments
 (0)