diff options
Diffstat (limited to 'lld/COFF/Symbols.h')
| -rw-r--r-- | lld/COFF/Symbols.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/lld/COFF/Symbols.h b/lld/COFF/Symbols.h index 141b40f2d0e..1b83f73ff20 100644 --- a/lld/COFF/Symbols.h +++ b/lld/COFF/Symbols.h @@ -287,29 +287,19 @@ public: class DefinedImportData : public Defined { public: DefinedImportData(StringRef N, ImportFile *F) - : Defined(DefinedImportDataKind, N), Live(!Config->DoGC), File(F) {} + : Defined(DefinedImportDataKind, N), File(F) { + } static bool classof(const SymbolBody *S) { return S->kind() == DefinedImportDataKind; } uint64_t getRVA() { return File->Location->getRVA(); } - StringRef getDLLName() { return File->DLLName; } StringRef getExternalName() { return File->ExternalName; } void setLocation(Chunk *AddressTable) { File->Location = AddressTable; } uint16_t getOrdinal() { return File->Hdr->OrdinalHint; } - // If all sections referring a dllimported symbol become dead by gc, - // we want to kill the symbol as well, so that a resulting binary has - // fewer number of dependencies to DLLs. "Live" bit manages reachability. - bool Live; - - // For a dllimported data symbol, we create two symbols. - // They should be considered as a unit by gc. This pointer points - // to the other symbol. - DefinedImportData *Sibling = nullptr; - private: ImportFile *File; }; @@ -330,10 +320,6 @@ public: uint64_t getRVA() { return Data->getRVA(); } Chunk *getChunk() { return Data; } - // For GC. - bool Live; - DefinedImportData *WrappedSym; - private: Chunk *Data; }; @@ -346,8 +332,7 @@ private: class DefinedLocalImport : public Defined { public: DefinedLocalImport(StringRef N, Defined *S) - : Defined(DefinedLocalImportKind, N), WrappedSym(S), - Data(make<LocalImportChunk>(S)) {} + : Defined(DefinedLocalImportKind, N), Data(make<LocalImportChunk>(S)) {} static bool classof(const SymbolBody *S) { return S->kind() == DefinedLocalImportKind; @@ -356,9 +341,6 @@ public: uint64_t getRVA() { return Data->getRVA(); } Chunk *getChunk() { return Data; } - // For GC. - Defined *WrappedSym; - private: LocalImportChunk *Data; }; |

