llvm-project/llvm
Sean Silva de68a37518 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
2019-04-15 22:07:56 +00:00
..
benchmarks
bindings [LLVM-C] Correct The Current Debug Location Accessors (Again) 2019-04-10 14:19:05 +00:00
cmake [cmake] Fix dependency issue in TableGen 2019-04-11 21:05:15 +00:00
docs [CommandLineParser] Add DefaultOption flag 2019-04-15 17:18:10 +00:00
examples
include Time profiler: small fixes and optimizations 2019-04-15 21:02:47 +00:00
lib Only use argv[0] as the main executable name if it exists. 2019-04-15 22:07:56 +00:00
projects
resources
runtimes
test [EarlyCSE] add more tests for double-negated select condition; NFC 2019-04-15 21:51:51 +00:00
tools Revert r358418: "[llvm-objdump] Simplify PrintHelpMessage() logic" 2019-04-15 20:16:19 +00:00
unittests [Support] Fix recursive response file expansion guard 2019-04-15 21:31:28 +00:00
utils gn build: Merge r358390 2019-04-15 11:25:23 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [CMake] Move configuration of LLVM_CXX_STD to HandleLLVMOptions.cmake 2019-04-09 08:14:32 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.