[PATCH] D143097: [NFC] add new function is64Bit for SymbolicFile class

Digger Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 11:07:51 PST 2023


DiggerLin created this revision.
DiggerLin added reviewers: jhenderson, daltenty, hubert.reinterpretcast, MaskRay.
Herald added a project: All.
DiggerLin requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

since the class 'SymbolicFile ' do not have a is64Bit() API , when we need to check whether a SymbolicFile object is 64bit or not. we need to write a function to do it, it maybe cause duplication code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143097

Files:
  llvm/include/llvm/Object/ELFObjectFile.h
  llvm/include/llvm/Object/IRObjectFile.h
  llvm/include/llvm/Object/MachO.h
  llvm/include/llvm/Object/SymbolicFile.h
  llvm/include/llvm/Object/TapiFile.h
  llvm/include/llvm/Object/XCOFFObjectFile.h
  llvm/tools/llvm-ar/llvm-ar.cpp
  llvm/tools/llvm-nm/llvm-nm.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143097.494014.patch
Type: text/x-patch
Size: 7224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230201/1b144a0a/attachment.bin>


More information about the llvm-commits mailing list