diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-06-09 00:53:21 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-06-09 00:53:21 +0000 |
| commit | 2ad6d48b0c631d7fa8416c07f8b47f167cfd2fd8 (patch) | |
| tree | 3d828acb25a67cb8ec584877faa300c9c8ae2289 /llvm/tools/llvm-jitlistener | |
| parent | 6d1d27542fd66465f5e1e3e4248910b15f47a8b2 (diff) | |
| download | bcm5719-llvm-2ad6d48b0c631d7fa8416c07f8b47f167cfd2fd8.tar.gz bcm5719-llvm-2ad6d48b0c631d7fa8416c07f8b47f167cfd2fd8.zip | |
Search for llvm-symbolizer binary in the same directory as argv[0], before
looking for it along $PATH. This allows installs of LLVM tools outside of
$PATH to find the symbolizer and produce pretty backtraces if they crash.
llvm-svn: 272232
Diffstat (limited to 'llvm/tools/llvm-jitlistener')
| -rw-r--r-- | llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp b/llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp index 9e1886ef80b..6b72c17b1fe 100644 --- a/llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp +++ b/llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp @@ -179,7 +179,7 @@ InputFilename(cl::Positional, cl::desc("<input IR file>"), int main(int argc, char **argv) { // Print a stack trace if we signal out. - sys::PrintStackTraceOnErrorSignal(); + sys::PrintStackTraceOnErrorSignal(argv[0]); PrettyStackTraceProgram X(argc, argv); llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. |

