[PATCH] D49043: [llvm-objdump] Add -demangle (-C) option
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 6 14:09:40 PDT 2018
davide added inline comments.
================
Comment at: tools/llvm-objdump/llvm-objdump.cpp:1526
+ itaniumDemangle(SymbolName.data(), DemangledSymbol, &Size, &Status);
+ if (Status == 0) // Success
+ outs() << '\n' << DemangledSymbol << ":\n";
----------------
This comment is probably too trivial to be useful.
================
Comment at: tools/llvm-objdump/llvm-objdump.cpp:1531-1532
+
+ if (Size != 0)
+ free(DemangledSymbol);
+ } else
----------------
Why not `freeing` always on success? Do you really need to look at the size?
Repository:
rL LLVM
https://reviews.llvm.org/D49043
More information about the llvm-commits
mailing list