[PECOFF] Return an error_code instead of calling report_fatal_error().
authorRui Ueyama <ruiu@google.com>
Fri, 2 Aug 2013 21:10:17 +0000 (21:10 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 2 Aug 2013 21:10:17 +0000 (21:10 +0000)
commitf29065d0c656d00410edb28c3e531cb629b19f28
treed10ea89b2999adbfe1857dc3aacc60321d4834a6
parent9275c688ea050b0a2be88cf8b1b038051e7c9085
[PECOFF] Return an error_code instead of calling report_fatal_error().

For an invalid input we should not call report_fatal_error(), because
when LLD is used as a library, we don't want to kill the whole app
because of a malformed input.

llvm-svn: 187673
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp