Skip to content

Commit a2ae9e3

Browse files
committed
[lld] fix comment typos to cycle bots
1 parent 062380c commit a2ae9e3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lld/Common/ErrorHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void lld::exitLld(int val) {
9595
e.outputBuffer->discard();
9696
}
9797

98-
// Re-throw a possible signal or exception once/if it was catched by
98+
// Re-throw a possible signal or exception once/if it was caught by
9999
// safeLldMain().
100100
CrashRecoveryContext::throwIfCrash(val);
101101

lld/docs/MachO/ld64-vs-lld.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ the aliased symbols turn out to be weak definitions, but ld64 will.
5151
***********************************
5252
ld64 has a special mode where it sets some stabs modification times to 0 for
5353
hermetic builds, enabled by setting any value for the ``ZERO_AR_DATE``
54-
environment variable. LLD flips this default to perfer hermetic builds, but
54+
environment variable. LLD flips this default to prefer hermetic builds, but
5555
allows disabling this behavior by setting ``ZERO_AR_DATE=0``. Any other value
5656
of ``ZERO_AR_DATE`` will be ignored.

lld/test/MachO/thinlto-split-unit-start-lib.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737

3838
; % clang -c vtable_use.cc vtable.cc -emit-llvm -S -fno-exceptions -arch x86_64 -mmacos-version-min=11 -O1
3939

40-
; ...and then manually ading `, !type !8, type !9` based on `clang -S -emit-llvm -flto=thin` output,
40+
; ...and then manually adding `, !type !8, type !9` based on `clang -S -emit-llvm -flto=thin` output,
4141
; because splitAndWriteThinLTOBitcode() in ThinLTOBitcodeWriter.cpp only splits bitcode
42-
; if type annotations are present. While at it, also removed unneccessary metadata.
42+
; if type annotations are present. While at it, also removed unnecessary metadata.
4343
; (NB: The first comment creates vtable.ll while the latter generates vtable.s! vtable.s
4444
; contains a few things opt complains about, so we can't use the output of that directly.)
4545

lld/wasm/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ static std::optional<std::string> findFromSearchPaths(StringRef path) {
296296
// search paths.
297297
static std::optional<std::string> searchLibraryBaseName(StringRef name) {
298298
for (StringRef dir : config->searchPaths) {
299-
// Currently we don't enable dyanmic linking at all unless -shared or -pie
299+
// Currently we don't enable dynamic linking at all unless -shared or -pie
300300
// are used, so don't even look for .so files in that case..
301301
if (config->isPic && !config->isStatic)
302302
if (std::optional<std::string> s = findFile(dir, "lib" + name + ".so"))

0 commit comments

Comments
 (0)