[PATCH] D120357: [llvm-nm]add helper function to print out the object file name, archive name, architecture name
Digger Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 24 09:26:38 PST 2022
DiggerLin added inline comments.
================
Comment at: llvm/tools/llvm-nm/llvm-nm.cpp:1865-1866
+
+static void dumpSymbolNamesFromObject(SymbolicFile &Obj, bool PrintName,
+ bool PrintObjectNameInfo,
+ StringRef ArchiveName = {},
----------------
DiggerLin wrote:
> jhenderson wrote:
> > It's not clear what the difference is between `PrintName` and `PrintObjectNameInfo` from just the variable names. I suggest renaming `PrintName` to be more specific (I think it's `PrintSymbolName` right?). Also, I'd drop "Info" from the `PrintObjectNameInfo` variable name.
> it is not printing symbol name. it print object file name relate info. I thin PrintName is too generic. I used PrintObjectName?
sorry for misunderstand comment, please ignore above comment.
1. I changed PrintName to PrintSymObjectName
2. changed PrintObjectNameInfo to PrintObjectName
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120357/new/
https://reviews.llvm.org/D120357
More information about the llvm-commits
mailing list