Fix typos in comments

llvm-svn: 350337
This commit is contained in:
Jordan Rupprecht 2019-01-03 17:51:32 +00:00
parent 1f82176f7d
commit 78213c7e2c
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ template <class ELFT>
void ELFSectionSizer<ELFT>::visit(SymbolTableSection &Sec) {
Sec.EntrySize = sizeof(Elf_Sym);
Sec.Size = Sec.Symbols.size() * Sec.EntrySize;
// Align to the larget field in Elf_Sym.
// Align to the largest field in Elf_Sym.
Sec.Align = sizeof(Elf_Sym::st_size);
}
@ -94,7 +94,7 @@ template <class ELFT>
void ELFSectionSizer<ELFT>::visit(RelocationSection &Sec) {
Sec.EntrySize = Sec.Type == SHT_REL ? sizeof(Elf_Rel) : sizeof(Elf_Rela);
Sec.Size = Sec.Relocations.size() * Sec.EntrySize;
// Align to the larget field in Elf_Rel(a).
// Align to the largest field in Elf_Rel(a).
Sec.Align =
Sec.Type == SHT_REL ? sizeof(Elf_Rel::r_info) : sizeof(Elf_Rela::r_info);
}