[PATCH] D109452: implement the --syms and using "symbol index and qualname" for --sym --symbol--description for llvm-objdump for xcoff

Digger Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 21 09:57:05 PDT 2021


DiggerLin marked 3 inline comments as done.
DiggerLin added inline comments.


================
Comment at: llvm/tools/llvm-objdump/llvm-objdump.cpp:2042
+    if (O->isXCOFF()) {
+      XCOFFSymbolRef XCoffSymb =
+          dyn_cast<const XCOFFObjectFile>(O)->toSymbolRef(
----------------
jhenderson wrote:
> DiggerLin wrote:
> > jhenderson wrote:
> > > 1) Be consistent in your capitalization.
> > > 2) If an abbreviation is needed, "Sym" is the usual abbreviation, not "Symb".
> > > 
> > > Consequently, I'd rename this variable "XCOFFSym" or, if possible "XCOFFSymbol", depending on whether the latter clashes with a type somewhere or not.
> > thanks
> Please make the same change throughout your changed code (there are several other places with the old variable name).
done, thanks


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109452/new/

https://reviews.llvm.org/D109452



More information about the llvm-commits mailing list