diff --git a/lib/Support/JitRunner.cpp b/lib/Support/JitRunner.cpp index 919f829bdf77..26a5fc12ccee 100644 --- a/lib/Support/JitRunner.cpp +++ b/lib/Support/JitRunner.cpp @@ -48,7 +48,6 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/FileUtilities.h" #include "llvm/Support/InitLLVM.h" -#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/StringSaver.h" #include "llvm/Support/TargetSelect.h" @@ -263,7 +262,6 @@ static Error compileAndExecuteSingleFloatReturnFunction( int mlir::JitRunnerMain( int argc, char **argv, llvm::function_ref mlirTransformer) { - llvm::PrettyStackTraceProgram x(argc, argv); llvm::InitLLVM y(argc, argv); initializeLLVM(); diff --git a/tools/mlir-opt/mlir-opt.cpp b/tools/mlir-opt/mlir-opt.cpp index 35bba1fa9eec..3f9dbcde61ed 100644 --- a/tools/mlir-opt/mlir-opt.cpp +++ b/tools/mlir-opt/mlir-opt.cpp @@ -26,7 +26,6 @@ #include "mlir/Support/MlirOptMain.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/InitLLVM.h" -#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/ToolOutputFile.h" @@ -60,7 +59,6 @@ static cl::opt static std::vector *passList; int main(int argc, char **argv) { - llvm::PrettyStackTraceProgram x(argc, argv); InitLLVM y(argc, argv); // Register any pass manager command line options. diff --git a/tools/mlir-tblgen/mlir-tblgen.cpp b/tools/mlir-tblgen/mlir-tblgen.cpp index 0bb58918f7d1..50b680d904d2 100644 --- a/tools/mlir-tblgen/mlir-tblgen.cpp +++ b/tools/mlir-tblgen/mlir-tblgen.cpp @@ -24,8 +24,8 @@ #include "llvm/ADT/StringExtras.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/FormatVariadic.h" +#include "llvm/Support/InitLLVM.h" #include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Signals.h" #include "llvm/TableGen/Error.h" #include "llvm/TableGen/Main.h" @@ -79,13 +79,11 @@ static bool MlirTableGenMain(raw_ostream &os, RecordKeeper &records) { } int main(int argc, char **argv) { - sys::PrintStackTraceOnErrorSignal(argv[0]); - PrettyStackTraceProgram X(argc, argv); + llvm::InitLLVM y(argc, argv); llvm::cl::opt generator( "", llvm::cl::desc("Generator to run")); cl::ParseCommandLineOptions(argc, argv); ::generator = generator.getValue(); - llvm_shutdown_obj Y; return TableGenMain(argv[0], &MlirTableGenMain); } diff --git a/tools/mlir-translate/mlir-translate.cpp b/tools/mlir-translate/mlir-translate.cpp index 0ff5e6e001be..282eae820a29 100644 --- a/tools/mlir-translate/mlir-translate.cpp +++ b/tools/mlir-translate/mlir-translate.cpp @@ -24,7 +24,6 @@ #include "mlir/Support/LogicalResult.h" #include "mlir/Support/TranslateClParser.h" #include "llvm/Support/InitLLVM.h" -#include "llvm/Support/PrettyStackTrace.h" using namespace mlir; @@ -37,7 +36,6 @@ static llvm::cl::opt llvm::cl::value_desc("filename"), llvm::cl::init("-")); int main(int argc, char **argv) { - llvm::PrettyStackTraceProgram x(argc, argv); llvm::InitLLVM y(argc, argv); // Add flags for all the registered translations.