[llvm] r292579 - llvm-cxxfilt: fix program description

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 21:27:09 PST 2017


Author: compnerd
Date: Thu Jan 19 23:27:09 2017
New Revision: 292579

URL: http://llvm.org/viewvc/llvm-project?rev=292579&view=rev
Log:
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.

Modified:
    llvm/trunk/tools/llvm-cxxfilt/llvm-cxxfilt.cpp

Modified: llvm/trunk/tools/llvm-cxxfilt/llvm-cxxfilt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cxxfilt/llvm-cxxfilt.cpp?rev=292579&r1=292578&r2=292579&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cxxfilt/llvm-cxxfilt.cpp (original)
+++ llvm/trunk/tools/llvm-cxxfilt/llvm-cxxfilt.cpp Thu Jan 19 23:27:09 2017
@@ -36,7 +36,10 @@ static void demangle(llvm::raw_ostream &
 }
 
 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);)




More information about the llvm-commits mailing list