[PATCH] D118193: [llvm-nm] add a new option --bit-mode to specify the type of object file llvm-nm should examine

Digger Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 25 14:10:18 PST 2022


DiggerLin created this revision.
DiggerLin added reviewers: jhenderson, MaskRay, hubert.reinterpretcast, Esme, PowerPC.
Herald added a subscriber: rupprecht.
DiggerLin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The archive file may contain 32bit and 64bit object files at the same time. adding a new option "--bit-mode" to specify, which type of object file should be examine. 
for example , "llvm-nm --bit-mode=64  archive.a" only deal with the 64bit object files in the archive.a ,ignore the all 32bit object files in the archive.a


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118193

Files:
  llvm/docs/CommandGuide/llvm-nm.rst
  llvm/test/tools/llvm-nm/XCOFF/option-bit-mode.test
  llvm/tools/llvm-nm/Opts.td
  llvm/tools/llvm-nm/llvm-nm.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118193.403032.patch
Type: text/x-patch
Size: 6150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220125/fb47f477/attachment.bin>


More information about the llvm-commits mailing list