[lld] a2ae9e3 - [lld] fix comment typos to cycle bots
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 4 12:23:42 PST 2023
Author: Nico Weber
Date: 2023-02-04T15:23:30-05:00
New Revision: a2ae9e3a24a77451341020341bed251a76ba7c02
URL: https://github.com/llvm/llvm-project/commit/a2ae9e3a24a77451341020341bed251a76ba7c02
DIFF: https://github.com/llvm/llvm-project/commit/a2ae9e3a24a77451341020341bed251a76ba7c02.diff
LOG: [lld] fix comment typos to cycle bots
Added:
Modified:
lld/Common/ErrorHandler.cpp
lld/docs/MachO/ld64-vs-lld.rst
lld/test/MachO/thinlto-split-unit-start-lib.ll
lld/wasm/Driver.cpp
Removed:
################################################################################
diff --git a/lld/Common/ErrorHandler.cpp b/lld/Common/ErrorHandler.cpp
index 0a8fc8f054fc9..4e3a1bc31ade5 100644
--- a/lld/Common/ErrorHandler.cpp
+++ b/lld/Common/ErrorHandler.cpp
@@ -95,7 +95,7 @@ void lld::exitLld(int val) {
e.outputBuffer->discard();
}
- // Re-throw a possible signal or exception once/if it was catched by
+ // Re-throw a possible signal or exception once/if it was caught by
// safeLldMain().
CrashRecoveryContext::throwIfCrash(val);
diff --git a/lld/docs/MachO/ld64-vs-lld.rst b/lld/docs/MachO/ld64-vs-lld.rst
index 327bf0ab71678..4e2f3f29491b8 100644
--- a/lld/docs/MachO/ld64-vs-lld.rst
+++ b/lld/docs/MachO/ld64-vs-lld.rst
@@ -51,6 +51,6 @@ the aliased symbols turn out to be weak definitions, but ld64 will.
***********************************
ld64 has a special mode where it sets some stabs modification times to 0 for
hermetic builds, enabled by setting any value for the ``ZERO_AR_DATE``
-environment variable. LLD flips this default to perfer hermetic builds, but
+environment variable. LLD flips this default to prefer hermetic builds, but
allows disabling this behavior by setting ``ZERO_AR_DATE=0``. Any other value
of ``ZERO_AR_DATE`` will be ignored.
diff --git a/lld/test/MachO/thinlto-split-unit-start-lib.ll b/lld/test/MachO/thinlto-split-unit-start-lib.ll
index 6c33a505c75cf..8c643b7c594e8 100644
--- a/lld/test/MachO/thinlto-split-unit-start-lib.ll
+++ b/lld/test/MachO/thinlto-split-unit-start-lib.ll
@@ -37,9 +37,9 @@
; % clang -c vtable_use.cc vtable.cc -emit-llvm -S -fno-exceptions -arch x86_64 -mmacos-version-min=11 -O1
-; ...and then manually ading `, !type !8, type !9` based on `clang -S -emit-llvm -flto=thin` output,
+; ...and then manually adding `, !type !8, type !9` based on `clang -S -emit-llvm -flto=thin` output,
; because splitAndWriteThinLTOBitcode() in ThinLTOBitcodeWriter.cpp only splits bitcode
-; if type annotations are present. While at it, also removed unneccessary metadata.
+; if type annotations are present. While at it, also removed unnecessary metadata.
; (NB: The first comment creates vtable.ll while the latter generates vtable.s! vtable.s
; contains a few things opt complains about, so we can't use the output of that directly.)
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index 2f2837ddbdcd8..85020660ea296 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -296,7 +296,7 @@ static std::optional<std::string> findFromSearchPaths(StringRef path) {
// search paths.
static std::optional<std::string> searchLibraryBaseName(StringRef name) {
for (StringRef dir : config->searchPaths) {
- // Currently we don't enable dyanmic linking at all unless -shared or -pie
+ // Currently we don't enable dynamic linking at all unless -shared or -pie
// are used, so don't even look for .so files in that case..
if (config->isPic && !config->isStatic)
if (std::optional<std::string> s = findFile(dir, "lib" + name + ".so"))
More information about the llvm-commits
mailing list