Revert 277594, it caused PR28827

llvm-svn: 277599
This commit is contained in:
Nico Weber
2016-08-03 14:37:57 +00:00
parent 91bab5364e
commit 2e36772caf
4 changed files with 19 additions and 16 deletions

View File

@@ -218,8 +218,9 @@ template <class ELFT> void LinkerScript<ELFT>::filter() {
}
}
template <class ELFT> void LinkerScript<ELFT>::assignAddresses() {
ArrayRef<OutputSectionBase<ELFT> *> Sections = *OutputSections;
template <class ELFT>
void LinkerScript<ELFT>::assignAddresses(
ArrayRef<OutputSectionBase<ELFT> *> Sections) {
// Orphan sections are sections present in the input files which
// are not explicitly placed into the output file by the linker script.
// We place orphan sections at end of file.
@@ -288,8 +289,8 @@ template <class ELFT> void LinkerScript<ELFT>::assignAddresses() {
}
template <class ELFT>
std::vector<PhdrEntry<ELFT>> LinkerScript<ELFT>::createPhdrs() {
ArrayRef<OutputSectionBase<ELFT> *> Sections = *OutputSections;
std::vector<PhdrEntry<ELFT>>
LinkerScript<ELFT>::createPhdrs(ArrayRef<OutputSectionBase<ELFT> *> Sections) {
std::vector<PhdrEntry<ELFT>> Ret;
for (const PhdrsCommand &Cmd : Opt.PhdrsCommands) {