summaryrefslogtreecommitdiffstats
path: root/lld/COFF/Symbols.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-05-22 06:01:37 +0000
committerRui Ueyama <ruiu@google.com>2017-05-22 06:01:37 +0000
commitb6632d9cd155ca945a102ccbb5661b5ec5a0835f (patch)
tree87ba36f8047f9e23ad7426502cfd4ea2d3d0b3f3 /lld/COFF/Symbols.cpp
parent36778a54fe6581117bdaabc359e01d8b86217fcb (diff)
downloadbcm5719-llvm-b6632d9cd155ca945a102ccbb5661b5ec5a0835f.tar.gz
bcm5719-llvm-b6632d9cd155ca945a102ccbb5661b5ec5a0835f.zip
Revert r303304: Re-submit r303225: Garbage collect dllimported symbols.
This reverts commit r303304 because it looks like the change introduced a crash bug. At least after that change, LLD with thinlto crashes when linking Chromium. llvm-svn: 303527
Diffstat (limited to 'lld/COFF/Symbols.cpp')
-rw-r--r--lld/COFF/Symbols.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/COFF/Symbols.cpp b/lld/COFF/Symbols.cpp
index f63c381ca34..993e920ce7f 100644
--- a/lld/COFF/Symbols.cpp
+++ b/lld/COFF/Symbols.cpp
@@ -63,8 +63,7 @@ COFFSymbolRef DefinedCOFF::getCOFFSymbol() {
DefinedImportThunk::DefinedImportThunk(StringRef Name, DefinedImportData *S,
uint16_t Machine)
- : Defined(DefinedImportThunkKind, Name), Live(!Config->DoGC),
- WrappedSym(S) {
+ : Defined(DefinedImportThunkKind, Name) {
switch (Machine) {
case AMD64: Data = make<ImportThunkChunkX64>(S); return;
case I386: Data = make<ImportThunkChunkX86>(S); return;
OpenPOWER on IntegriCloud