From 78213c7e2cf4753c6793320c701a6173e49fa2a6 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Thu, 3 Jan 2019 17:51:32 +0000 Subject: [PATCH] Fix typos in comments llvm-svn: 350337 --- llvm/tools/llvm-objcopy/ELF/Object.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/tools/llvm-objcopy/ELF/Object.cpp b/llvm/tools/llvm-objcopy/ELF/Object.cpp index d77e03c..6a85b95 100644 --- a/llvm/tools/llvm-objcopy/ELF/Object.cpp +++ b/llvm/tools/llvm-objcopy/ELF/Object.cpp @@ -86,7 +86,7 @@ template void ELFSectionSizer::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 void ELFSectionSizer::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); } -- 2.7.4