diff options
author | Sean Silva <chisophugis@gmail.com> | 2019-04-15 22:07:56 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2019-04-15 22:07:56 +0000 |
commit | de68a375181f4e831f4d558a75508e0426ba7327 (patch) | |
tree | 7482b26e96a7e34a569d24f4ca311242b428598b /llvm/lib/Support/CommandLine.cpp | |
parent | 800a0c3e4b0655ba23afe40ff1d21bc531158bfc (diff) | |
download | bcm5719-llvm-de68a375181f4e831f4d558a75508e0426ba7327.tar.gz bcm5719-llvm-de68a375181f4e831f4d558a75508e0426ba7327.zip |
Only use argv[0] as the main executable name if it exists.
Under some environments, argv[0] doesn't hold a valid file name, but
sys::fs::getMainExecutable will find the main executable properly.
This patch tweaks the logic to fall back to sys::fs::getMainExecutable
in more situations.
Differential Revision: https://reviews.llvm.org/D60730
llvm-svn: 358455
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions