File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -536,15 +536,11 @@ void ELFState<ELFT>::writeELFHeader(raw_ostream &OS) {
536
536
537
537
template <class ELFT >
538
538
void ELFState<ELFT>::initProgramHeaders(std::vector<Elf_Phdr> &PHeaders) {
539
- DenseMap<StringRef, ELFYAML::Fill *> NameToFill;
540
539
DenseMap<StringRef, size_t > NameToIndex;
541
540
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
541
NameToIndex[Doc.Chunks [I]->Name ] = I + 1 ;
545
542
}
546
543
547
- std::vector<ELFYAML::Section *> Sections = Doc.getSections ();
548
544
for (size_t I = 0 , E = Doc.ProgramHeaders .size (); I != E; ++I) {
549
545
ELFYAML::ProgramHeader &YamlPhdr = Doc.ProgramHeaders [I];
550
546
Elf_Phdr Phdr;
You can’t perform that action at this time.
0 commit comments