forked from OSchip/llvm-project
parent
59d9b4b4bc
commit
0b2d374c01
|
@ -118,7 +118,7 @@ ELFFileBase<ELFT>::ELFFileBase(Kind K, MemoryBufferRef MB) : InputFile(K, MB) {
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
typename ELFT::SymRange ELFFileBase<ELFT>::getGlobalSymbols() {
|
typename ELFT::SymRange ELFFileBase<ELFT>::getGlobalSymbols() {
|
||||||
return makeArrayRef(Symbols.begin() + FirstNonLocal, Symbols.end());
|
return makeArrayRef(Symbols.begin() + FirstNonLocal, Symbols.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
|
@ -271,9 +271,8 @@ void elf::ObjectFile<ELFT>::initializeSections(
|
||||||
switch (Sec.sh_type) {
|
switch (Sec.sh_type) {
|
||||||
case SHT_GROUP:
|
case SHT_GROUP:
|
||||||
Sections[I] = &InputSection<ELFT>::Discarded;
|
Sections[I] = &InputSection<ELFT>::Discarded;
|
||||||
if (ComdatGroups
|
if (ComdatGroups.insert(CachedHashStringRef(
|
||||||
.insert(
|
getShtGroupSignature(ObjSections, Sec)))
|
||||||
CachedHashStringRef(getShtGroupSignature(ObjSections, Sec)))
|
|
||||||
.second)
|
.second)
|
||||||
continue;
|
continue;
|
||||||
for (uint32_t SecIndex : getShtGroupEntries(Sec)) {
|
for (uint32_t SecIndex : getShtGroupEntries(Sec)) {
|
||||||
|
|
Loading…
Reference in New Issue