Print "invalid mangled name" when we can't demangle something.
authorZachary Turner <zturner@google.com>
Tue, 21 Aug 2018 21:23:29 +0000 (21:23 +0000)
committerZachary Turner <zturner@google.com>
Tue, 21 Aug 2018 21:23:29 +0000 (21:23 +0000)
llvm-svn: 340340

llvm/tools/llvm-objdump/COFFDump.cpp

index 7a437b1..a67ff98 100644 (file)
@@ -662,6 +662,8 @@ void llvm::printCOFFSymbolTable(const COFFObjectFile *coff) {
       if (Status == 0 && DemangledSymbol) {
         outs() << " (" << StringRef(DemangledSymbol) << ")";
         std::free(DemangledSymbol);
+      } else {
+        outs() << " (invalid mangled name)";
       }
     }
     outs() << "\n";