OSDN Git Service

[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)
commit956dada02800e779f422ac788167e1485881aeaf
tree43f94e4147beb61528d4865ce43cbc19ac8e6a58
parent8ad683cced15373e16b79ae618af7abf4eaadd02
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344983 91177308-0d34-0410-b5e6-96231b3b80d8
tools/dsymutil/dsymutil.cpp