Fix typos in comments
authorJordan Rupprecht <rupprecht@google.com>
Thu, 3 Jan 2019 17:51:32 +0000 (17:51 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Thu, 3 Jan 2019 17:51:32 +0000 (17:51 +0000)
llvm-svn: 350337

llvm/tools/llvm-objcopy/ELF/Object.cpp

index d77e03c..6a85b95 100644 (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);
 }