From 1051909df1a2dfc9e3b4b27d15b36b3019c21463 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Mon, 27 Jun 2016 21:39:39 +0000 Subject: Change all but the last ErrorOr<...> use for MachOUniversalBinary to Expected<...> to allow a good error message to be produced. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- llvm/test/Object/Inputs/macho-invalid-fat | Bin 0 -> 8 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 llvm/test/Object/Inputs/macho-invalid-fat (limited to 'llvm/test/Object/Inputs') diff --git a/llvm/test/Object/Inputs/macho-invalid-fat b/llvm/test/Object/Inputs/macho-invalid-fat new file mode 100644 index 00000000000..1fa01903c53 Binary files /dev/null and b/llvm/test/Object/Inputs/macho-invalid-fat differ -- cgit v1.2.3