summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2019-04-15 22:07:56 +0000
committerSean Silva <chisophugis@gmail.com>2019-04-15 22:07:56 +0000
commitde68a375181f4e831f4d558a75508e0426ba7327 (patch)
tree7482b26e96a7e34a569d24f4ca311242b428598b /llvm/lib/Support/CommandLine.cpp
parent800a0c3e4b0655ba23afe40ff1d21bc531158bfc (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud