[lld] Fixed a number of typos

I went over the output of the following mess of a command:

`(ulimit -m 2000000; ulimit -v 2000000; git ls-files -z | parallel --xargs -0 cat | aspell list --mode=none --ignore-case | grep -E '^[A-Za-z][a-z]*$' | sort | uniq -c | sort -n | grep -vE '.{25}' | aspell pipe -W3 | grep : | cut -d' ' -f2 | less)`

and proceeded to spend a few days looking at it to find probable typos
and fixed a few hundred of them in all of the llvm project (note, the
ones I found are not anywhere near all of them, but it seems like a
good start).

Differential Revision: https://reviews.llvm.org/D130982
This commit is contained in:
Gabriel Ravier 2022-08-02 09:52:31 -04:00 committed by Nico Weber
parent c783ca0de1
commit 5dbd8faad5
10 changed files with 11 additions and 11 deletions

View File

@ -2334,7 +2334,7 @@ static void checkAndReportMissingFeature(StringRef config, uint32_t features,
}
}
// To enable CET (x86's hardware-assited control flow enforcement), each
// To enable CET (x86's hardware-assisted control flow enforcement), each
// source file must be compiled with -fcf-protection. Object files compiled
// with the flag contain feature flags indicating that they are compatible
// with CET. We enable the feature only when all object files are compatible

View File

@ -972,7 +972,7 @@ InputSectionBase *ObjFile<ELFT>::createInputSection(uint32_t idx,
return &InputSection::discarded;
}
// An object file cmpiled for split stack, but where some of the
// An object file compiled for split stack, but where some of the
// functions were compiled with the no_split_stack_attribute will
// include a .note.GNU-no-split-stack section.
if (name == ".note.GNU-no-split-stack") {

View File

@ -921,7 +921,7 @@ void InputSection::relocateNonAlloc(uint8_t *buf, ArrayRef<RelTy> rels) {
// at runtime, the notion of PC-relative doesn't make sense here. So,
// this is a usage error. However, GNU linkers historically accept such
// relocations without any errors and relocate them as if they were at
// address 0. For bug-compatibilty, we accept them with warnings. We
// address 0. For bug-compatibility, we accept them with warnings. We
// know Steel Bank Common Lisp as of 2018 have this bug.
warn(msg);
target.relocateNoSym(

View File

@ -323,7 +323,7 @@ def no_branch_islands : Flag<["-"], "no_branch_islands">,
Flags<[HelpHidden]>,
Group<grp_opts>;
def no_deduplicate : Flag<["-"], "no_deduplicate">,
HelpText<"Disable code deduplicaiton (synonym for `--icf=none')">,
HelpText<"Disable code deduplication (synonym for `--icf=none')">,
Alias<icf_eq>, AliasArgs<["none"]>,
Group<grp_opts>;

View File

@ -91,7 +91,7 @@
# NFC-NEXT: Other: 0
# NFC-NEXT: Section: .bss
## Expecting the strong definition from the object file, and the defintions from
## Expecting the strong definition from the object file, and the definitions from
## the archive do not interfere.
# TEST2-LABEL: Disassembly of section .data:
# TEST2: <block>:

View File

@ -47,7 +47,7 @@
// NOENTRY: ]
// Should not add entries for "_init" and "_fini" to the symbol table
// if the symbols are defined in non-fetched achive members.
// if the symbols are defined in non-fetched archive members.
// RUN: rm -f %t.a
// RUN: llvm-ar rcs %t.a %t
// RUN: ld.lld -shared -m elf_x86_64 -e _unknown %t.a -o %t.so

View File

@ -1,5 +1,5 @@
; REQUIRES: x86
; Cretae two archive with the same member name
; Create two archive with the same member name
; RUN: rm -f %t1.a %t2.a
; RUN: opt -module-summary %s -o %t.o
; RUN: llvm-ar rcS %t1.a %t.o

View File

@ -67,7 +67,7 @@ Lexception%d:
return func_size
def random_seed():
"""Generate a seed that can easily be passsed back in via --seed=STRING"""
"""Generate a seed that can easily be passed back in via --seed=STRING"""
return ''.join(random.choice(string.ascii_lowercase) for i in range(10))
def main():
@ -82,7 +82,7 @@ size = 4 KiB.
Use --pages=N or --functions=N to control the size of the output.
Default is --pages=2, meaning produce at least two full pages of
compact unwind entries, plus some more. The calculatation is sloppy.
compact unwind entries, plus some more. The calculation is sloppy.
""")
parser.add_argument('--seed', type=str, default=random_seed(),
help='Seed the random number generator')

View File

@ -362,7 +362,7 @@ def print_function(addr, size, addrs):
print_here_tail()
def random_seed():
"""Generate a seed that can easily be passsed back in via --seed=STRING"""
"""Generate a seed that can easily be passed back in via --seed=STRING"""
return ''.join(random.choice(string.ascii_lowercase) for i in range(10))
def generate_sizes(base, megabytes):

View File

@ -3,7 +3,7 @@
# RUN: obj2yaml %t.wasm | FileCheck %s
# Debug sections are allowed to contains references to non-live symbols that
# then get GC'd. In this test the .debug_info seciton contains a reference to
# then get GC'd. In this test the .debug_info section contains a reference to
# foo which is not otherwise used and will not be marked a live in the output.
# Verify the tombstone value is written to debug_info section.