summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-01-20 05:27:09 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-01-20 05:27:09 +0000
commitf1790c2c3018ce9bbedea85c22799207be9724c5 (patch)
tree987da565e6d5baf07b31a218cf7bc76fb66b6905 /llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp
parentdbd8d9b5a21f39634120d15f96ba632f40cdaad9 (diff)
downloadbcm5719-llvm-f1790c2c3018ce9bbedea85c22799207be9724c5.tar.gz
bcm5719-llvm-f1790c2c3018ce9bbedea85c22799207be9724c5.zip
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. llvm-svn: 292579
Diffstat (limited to 'llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp')
-rw-r--r--llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp b/llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp
index 525cea28ff3..16dd37fa3b8 100644
--- a/llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp
+++ b/llvm/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);)
OpenPOWER on IntegriCloud