[PATCH] D99783: [lld-macho][NFC] Remove redundant member from class Defined

Greg McGary via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 18:54:49 PDT 2021


gkm created this revision.
gkm added a reviewer: lld-macho.
Herald added a reviewer: int3.
Herald added a project: lld-macho.
gkm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

`class Symbol` defines a data member `InputFile *file;`
`class Defined` inherits from `Symbol` and also defines a data member `InputFile *file;` for no apparent purpose.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99783

Files:
  lld/MachO/Symbols.h


Index: lld/MachO/Symbols.h
===================================================================
--- lld/MachO/Symbols.h
+++ lld/MachO/Symbols.h
@@ -117,7 +117,6 @@
 
   static bool classof(const Symbol *s) { return s->kind() == DefinedKind; }
 
-  InputFile *file;
   InputSection *isec;
   uint64_t value;
   uint64_t size;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99783.334880.patch
Type: text/x-patch
Size: 324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210402/75076ed3/attachment.bin>


More information about the llvm-commits mailing list