Ignore:
Timestamp:
Apr 25, 2018, 7:12:49 PM (12 months ago)
Author:
cameron
Message:

Bug fix for binary detection/abort

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/icgrep.cpp

    r5969 r5990  
    99#include <llvm/Support/CommandLine.h>
    1010#include <llvm/Support/ErrorHandling.h>
     11#include <llvm/Support/PrettyStackTrace.h>
    1112#include <llvm/Support/Signals.h>
     13#include <llvm/Support/ManagedStatic.h>
    1214#include <llvm/Support/raw_ostream.h>
    1315#include <re/re_alt.h>
     
    109111
    110112int main(int argc, char *argv[]) {
     113    sys::PrintStackTraceOnErrorSignal(argv[0]);
     114    llvm::PrettyStackTraceProgram X(argc, argv);
     115    llvm_shutdown_obj shutdown;
    111116
    112117    argv::InitializeCommandLineInterface(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.