[AArch64] Replace some uses of report_fatal_error with reportError in AArch64 ELF...
authorOliver Stannard <oliver.stannard@arm.com>
Wed, 23 Mar 2016 13:45:03 +0000 (13:45 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Wed, 23 Mar 2016 13:45:03 +0000 (13:45 +0000)
commitaa77b1e0254af8fc95dd3b2f3b013ff9821d07ee
tree4e70689cc1d24a345b03286fc24bb65c6f283a96
parent59f43bbb20ac60100a0fa340e83db0ca14601b66
[AArch64] Replace some uses of report_fatal_error with reportError in AArch64 ELF object writer

If we can't handle a relocation type, report it as an error in the source,
rather than asserting. I've added a more descriptive message and a test for the
only cases of this that I've been able to trigger.

Differential Revision: http://reviews.llvm.org/D18388

llvm-svn: 264156
llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
llvm/test/MC/AArch64/error-location.s