summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/gcov.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-06-09 00:53:21 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-06-09 00:53:21 +0000
commit2ad6d48b0c631d7fa8416c07f8b47f167cfd2fd8 (patch)
tree3d828acb25a67cb8ec584877faa300c9c8ae2289 /llvm/tools/llvm-cov/gcov.cpp
parent6d1d27542fd66465f5e1e3e4248910b15f47a8b2 (diff)
downloadbcm5719-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-cov/gcov.cpp')
-rw-r--r--llvm/tools/llvm-cov/gcov.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/tools/llvm-cov/gcov.cpp b/llvm/tools/llvm-cov/gcov.cpp
index a5343fa29af..4652fed2a38 100644
--- a/llvm/tools/llvm-cov/gcov.cpp
+++ b/llvm/tools/llvm-cov/gcov.cpp
@@ -16,10 +16,7 @@
#include "llvm/Support/Errc.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/GCOV.h"
-#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Path.h"
-#include "llvm/Support/PrettyStackTrace.h"
-#include "llvm/Support/Signals.h"
#include <system_error>
using namespace llvm;
@@ -85,11 +82,6 @@ static void reportCoverage(StringRef SourceFile, StringRef ObjectDir,
}
int gcovMain(int argc, const char *argv[]) {
- // Print a stack trace if we signal out.
- sys::PrintStackTraceOnErrorSignal();
- PrettyStackTraceProgram X(argc, argv);
- llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
-
cl::list<std::string> SourceFiles(cl::Positional, cl::OneOrMore,
cl::desc("SOURCEFILE"));
OpenPOWER on IntegriCloud