[lld] r318635 - COFF: Remove unused fields. NFC.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 19 21:31:09 PST 2017
Author: pcc
Date: Sun Nov 19 21:31:09 2017
New Revision: 318635
URL: http://llvm.org/viewvc/llvm-project?rev=318635&view=rev
Log:
COFF: Remove unused fields. NFC.
Modified:
lld/trunk/COFF/Config.h
lld/trunk/COFF/Symbols.h
Modified: lld/trunk/COFF/Config.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Config.h?rev=318635&r1=318634&r2=318635&view=diff
==============================================================================
--- lld/trunk/COFF/Config.h (original)
+++ lld/trunk/COFF/Config.h Sun Nov 19 21:31:09 2017
@@ -88,7 +88,6 @@ struct Configuration {
bool Relocatable = true;
bool Force = false;
bool Debug = false;
- bool WriteSymtab = true;
unsigned DebugTypes = static_cast<unsigned>(DebugType::None);
llvm::SmallString<128> PDBPath;
std::vector<llvm::StringRef> Argv;
Modified: lld/trunk/COFF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Symbols.h?rev=318635&r1=318634&r2=318635&view=diff
==============================================================================
--- lld/trunk/COFF/Symbols.h (original)
+++ lld/trunk/COFF/Symbols.h Sun Nov 19 21:31:09 2017
@@ -77,8 +77,7 @@ protected:
friend SymbolTable;
explicit Symbol(Kind K, StringRef N = "")
: SymbolKind(K), IsExternal(true), IsCOMDAT(false),
- WrittenToSymtab(false), PendingArchiveLoad(false), IsGCRoot(false),
- Name(N) {}
+ PendingArchiveLoad(false), IsGCRoot(false), Name(N) {}
const unsigned SymbolKind : 8;
unsigned IsExternal : 1;
@@ -87,10 +86,6 @@ protected:
unsigned IsCOMDAT : 1;
public:
- // This bit is used by Writer::createSymbolAndStringTable() to prevent
- // symbols from being written to the symbol table more than once.
- unsigned WrittenToSymtab : 1;
-
// True if this symbol was referenced by a regular (non-bitcode) object.
unsigned IsUsedInRegularObj : 1;
More information about the llvm-commits
mailing list