From 2ad6d48b0c631d7fa8416c07f8b47f167cfd2fd8 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 9 Jun 2016 00:53:21 +0000 Subject: 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 --- llvm/tools/llvm-cov/TestingSupport.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/tools/llvm-cov/TestingSupport.cpp') diff --git a/llvm/tools/llvm-cov/TestingSupport.cpp b/llvm/tools/llvm-cov/TestingSupport.cpp index 8353442..72768f4 100644 --- a/llvm/tools/llvm-cov/TestingSupport.cpp +++ b/llvm/tools/llvm-cov/TestingSupport.cpp @@ -11,9 +11,6 @@ #include "llvm/ProfileData/InstrProf.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/LEB128.h" -#include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/PrettyStackTrace.h" -#include "llvm/Support/Signals.h" #include "llvm/Support/raw_ostream.h" #include #include @@ -22,10 +19,6 @@ using namespace llvm; using namespace object; int convertForTestingMain(int argc, const char *argv[]) { - sys::PrintStackTraceOnErrorSignal(); - PrettyStackTraceProgram X(argc, argv); - llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. - cl::opt InputSourceFile(cl::Positional, cl::Required, cl::desc("")); -- cgit v1.1