hanchenye-llvm-project/lld/lib
Rui Ueyama 8c6a5aaf15 Create a vector containing all input sections.
Previously, we do this piece of code to iterate over all input sections.

  for (elf::ObjectFile<ELFT> *F : Symtab.getObjectFiles())
    for (InputSectionBase<ELFT> *S : F->getSections())

It turned out that this mechanisms doesn't work well with synthetic
input sections because synthetic input sections don't belong to any
input file.

This patch defines a vector that contains all input sections including
synthetic ones.

llvm-svn: 286051
2016-11-05 22:37:59 +00:00
..
Config Truncate a SVN path part from --version output. 2016-10-26 03:52:06 +00:00
Core Create a vector containing all input sections. 2016-11-05 22:37:59 +00:00
Driver Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-04 17:39:46 +00:00
ReaderWriter Fix build breakage on buildbots that was due to 285309. 2016-10-27 17:43:39 +00:00
CMakeLists.txt Remove YAML/Native round-trip passes. 2015-02-20 22:10:28 +00:00