We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c912e98 commit af84ed8Copy full SHA for af84ed8
llvm/lib/ObjectYAML/ELFEmitter.cpp
@@ -536,15 +536,11 @@ void ELFState<ELFT>::writeELFHeader(raw_ostream &OS) {
536
537
template <class ELFT>
538
void ELFState<ELFT>::initProgramHeaders(std::vector<Elf_Phdr> &PHeaders) {
539
- DenseMap<StringRef, ELFYAML::Fill *> NameToFill;
540
DenseMap<StringRef, size_t> NameToIndex;
541
for (size_t I = 0, E = Doc.Chunks.size(); I != E; ++I) {
542
- if (auto S = dyn_cast<ELFYAML::Fill>(Doc.Chunks[I].get()))
543
- NameToFill[S->Name] = S;
544
NameToIndex[Doc.Chunks[I]->Name] = I + 1;
545
}
546
547
- std::vector<ELFYAML::Section *> Sections = Doc.getSections();
548
for (size_t I = 0, E = Doc.ProgramHeaders.size(); I != E; ++I) {
549
ELFYAML::ProgramHeader &YamlPhdr = Doc.ProgramHeaders[I];
550
Elf_Phdr Phdr;
0 commit comments