| commit | 8c6a5aaf1575a079e95e67729c486bee2f1f3f1f | [log] [tgz] |
|---|---|---|
| author | Rui Ueyama <ruiu@google.com> | Sat Nov 05 22:37:59 2016 +0000 |
| committer | Rui Ueyama <ruiu@google.com> | Sat Nov 05 22:37:59 2016 +0000 |
| tree | f15b98192e324a34852b5d025f13f23808a2e413 | |
| parent | 16480186f845a6698143d1f1efbebf9ea7e4b89a [diff] |
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