]> granicus.if.org Git - llvm/commitdiff
llvm-cxxfilt: fix program description
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 20 Jan 2017 05:27:09 +0000 (05:27 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 20 Jan 2017 05:27:09 +0000 (05:27 +0000)
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

index 525cea28ff3dfd373dfbdb08afef010c83f13148..16dd37fa3b8d83b0edff406703c7fffa3eb73035 100644 (file)
@@ -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);)