[lld] fix comment typos to cycle bots

This commit is contained in:
Nico Weber 2023-02-04 15:23:24 -05:00
parent 062380c86f
commit a2ae9e3a24
4 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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.

View File

@ -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.)

View File

@ -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"))