diff options
author | Kevin Enderby <enderby@apple.com> | 2016-06-27 21:39:39 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2016-06-27 21:39:39 +0000 |
commit | 1051909df1a2dfc9e3b4b27d15b36b3019c21463 (patch) | |
tree | b7493e3ee6c0a1804ef7066f625fc0e99d20c416 /lldb/packages/Python/lldbsuite/test/python_api/value | |
parent | f9e348bd59c441be9417507f9752c66716d2ab41 (diff) | |
download | bcm5719-llvm-1051909df1a2dfc9e3b4b27d15b36b3019c21463.tar.gz bcm5719-llvm-1051909df1a2dfc9e3b4b27d15b36b3019c21463.zip |
Change all but the last ErrorOr<...> use for MachOUniversalBinary to Expected<...> to
allow a good error message to be produced.
I added the one test case that the object file tools could produce an error
message. The other two errors can’t be triggered if the input file is passed
through sys::fs::identify_magic(). But the malformedError("bad magic number")
does get triggered by the logic in llvm-dsymutil when dealing with a normal
Mach-O file. The other "File too small ..." error would take a logic error
currently to produce and is not tested for.
llvm-svn: 273946
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/value')
0 files changed, 0 insertions, 0 deletions