Skip to content

Commit

Permalink
Suppress OS crash dialog in llvm-rtdyld
Browse files Browse the repository at this point in the history
All other tools have this -- it's needed to avoid hanging lit on Windows in
case of a crash.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194060 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
atoker committed Nov 5, 2013
1 parent 19648c0 commit 4d6b695
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/llvm-rtdyld/llvm-rtdyld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Memory.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
using namespace llvm;
Expand Down Expand Up @@ -239,6 +241,9 @@ static int executeInput() {
}

int main(int argc, char **argv) {
sys::PrintStackTraceOnErrorSignal();
PrettyStackTraceProgram X(argc, argv);

ProgramName = argv[0];
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.

Expand Down

0 comments on commit 4d6b695

Please sign in to comment.