From 08015a574dc8333f92e45b632ba39305bb43a26f Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 20 Jan 2017 05:27:09 +0000 Subject: [PATCH] llvm-cxxfilt: fix program description Fix a silly copy-paste error in the tool description. Take the opportunity to add crash stack printing which will hopefully never be needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292579 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-cxxfilt/llvm-cxxfilt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/llvm-cxxfilt/llvm-cxxfilt.cpp b/tools/llvm-cxxfilt/llvm-cxxfilt.cpp index 525cea28ff3..16dd37fa3b8 100644 --- a/tools/llvm-cxxfilt/llvm-cxxfilt.cpp +++ b/tools/llvm-cxxfilt/llvm-cxxfilt.cpp @@ -36,7 +36,10 @@ static void demangle(llvm::raw_ostream &OS, const std::string &Mangled) { } int main(int argc, char **argv) { - cl::ParseCommandLineOptions(argc, argv, "llvm symbol table dumper\n"); + sys::PrintStackTraceOnErrorSignal(argv[0]); + PrettyStackTraceProgram X(argc, argv); + + cl::ParseCommandLineOptions(argc, argv, "llvm symbol undecoration tool\n"); if (Decorated.empty()) for (std::string Mangled; std::getline(std::cin, Mangled);) -- 2.40.0