[ARM] llvm_unreachable => make_dynamic_error in R_ARM_BASE_PREL

llvm-svn: 236727
This commit is contained in:
Denis Protivensky 2015-05-07 13:44:51 +00:00
parent aaeba9ebb9
commit cf4e031b36
1 changed files with 2 additions and 1 deletions

View File

@ -638,7 +638,8 @@ std::error_code ARMTargetRelocationHandler::applyRelocation(
if (!target || ref.target()->name().equals("_GLOBAL_OFFSET_TABLE_")) {
target = _armLayout.getGOTSymAddr();
} else {
llvm_unreachable("Segment-base relative addressing is not supported");
return make_dynamic_error_code(
"Segment-base relative addressing is not supported");
}
return relocR_ARM_BASE_PREL(loc, reloc, target, addend);
case R_ARM_ALU_PC_G0_NC: