Clear OutSec->Sections.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 23 May 2017 22:54:06 +0000 (22:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 23 May 2017 22:54:06 +0000 (22:54 +0000)
commitaeb4b7d217dae0ad2d29a5aa9a67cf2309432522
treec178714cd8705d1f1903c185bec6d20c2727e39b
parent6a1aa8d9b451b9d9f1452e86ce0b02993b8fae36
Clear OutSec->Sections.

Once the dummy linker script is created, we want it to be used for
everything to avoid having two redundant representations that can get
out of sync.

We were already clearing OutputSections. With this patch we clear the
Sections vector of every OutputSection.

llvm-svn: 303703
lld/ELF/MapFile.cpp
lld/ELF/Writer.cpp