[lld] 3f8c6f4 - [lld-macho][NFC] Remove redundant member from class Defined

Greg McGary via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 2 09:20:05 PDT 2021


Author: Greg McGary
Date: 2021-04-02T09:19:15-07:00
New Revision: 3f8c6f493b06d72312757102f8277d367409bcdd

URL: https://github.com/llvm/llvm-project/commit/3f8c6f493b06d72312757102f8277d367409bcdd
DIFF: https://github.com/llvm/llvm-project/commit/3f8c6f493b06d72312757102f8277d367409bcdd.diff

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

`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.

Differential Revision: https://reviews.llvm.org/D99783

Added: 
    

Modified: 
    lld/MachO/Symbols.h

Removed: 
    


################################################################################
diff  --git a/lld/MachO/Symbols.h b/lld/MachO/Symbols.h
index cb678accf1b4..77919e1557c2 100644
--- a/lld/MachO/Symbols.h
+++ b/lld/MachO/Symbols.h
@@ -117,7 +117,6 @@ class Defined : public Symbol {
 
   static bool classof(const Symbol *s) { return s->kind() == DefinedKind; }
 
-  InputFile *file;
   InputSection *isec;
   uint64_t value;
   uint64_t size;


        


More information about the llvm-commits mailing list