[PATCH] D56013: [ELF] Use SymbolTable::ComdatGroups instead of DummyGroups in LTO

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 21 11:07:49 PST 2018


MaskRay updated this revision to Diff 179316.
MaskRay added a comment.

Use ruiu@'s version


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56013/new/

https://reviews.llvm.org/D56013

Files:
  ELF/SymbolTable.cpp


Index: ELF/SymbolTable.cpp
===================================================================
--- ELF/SymbolTable.cpp
+++ ELF/SymbolTable.cpp
@@ -129,8 +129,8 @@
   for (BitcodeFile *F : BitcodeFiles)
     LTO->add(*F);
 
+  DenseSet<CachedHashStringRef> DummyGroups;
   for (InputFile *File : LTO->compile()) {
-    DenseSet<CachedHashStringRef> DummyGroups;
     auto *Obj = cast<ObjFile<ELFT>>(File);
     Obj->parse(DummyGroups);
     for (Symbol *Sym : Obj->getGlobalSymbols())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56013.179316.patch
Type: text/x-patch
Size: 484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181221/0eb7800c/attachment.bin>


More information about the llvm-commits mailing list