[dsymutil] Improve error reporting when we cannot create output file.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 23 Oct 2018 00:32:22 +0000 (00:32 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 23 Oct 2018 00:32:22 +0000 (00:32 +0000)
commit18028f9d431dba8bb538c989968f359734cb17e3
treedf040d1d19c220f0ca99481a31ed21fa0cdbf3f4
parent70152d3288d008dd289d32c0b7cd36cb986a5cb5
[dsymutil] Improve error reporting when we cannot create output file.

Before this patch we were returning an empty string in case we couldn't
create the output file. Now we return an expected string so we can
return and print the proper issue. We now return errors instead of bools
and defer printing to the call site.

llvm-svn: 344983
llvm/tools/dsymutil/dsymutil.cpp