[lld] bf3d5db - [lld/ELF] fix typos to cycle bots
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 15:31:43 PST 2024
Author: Nico Weber
Date: 2024-02-13T18:31:32-05:00
New Revision: bf3d5dbe2fc7e558b4627637de53ea2bcf6bb8eb
URL: https://github.com/llvm/llvm-project/commit/bf3d5dbe2fc7e558b4627637de53ea2bcf6bb8eb
DIFF: https://github.com/llvm/llvm-project/commit/bf3d5dbe2fc7e558b4627637de53ea2bcf6bb8eb.diff
LOG: [lld/ELF] fix typos to cycle bots
Added:
Modified:
lld/ELF/Arch/LoongArch.cpp
lld/ELF/InputFiles.cpp
lld/ELF/Thunks.cpp
lld/test/ELF/arm-thumb-thunk-v6m-xo.s
Removed:
################################################################################
diff --git a/lld/ELF/Arch/LoongArch.cpp b/lld/ELF/Arch/LoongArch.cpp
index 3e9d6e0e742008..49fd979bd0a55c 100644
--- a/lld/ELF/Arch/LoongArch.cpp
+++ b/lld/ELF/Arch/LoongArch.cpp
@@ -75,7 +75,7 @@ enum Reg {
//
// Here a "page" is in fact just another way to refer to the 12-bit range
// allowed by the immediate field of the addi/ld/st instructions, and not
-// related to the system or the kernel's actual page size. The sematics happens
+// related to the system or the kernel's actual page size. The semantics happen
// to match the AArch64 `adrp`, so the concept of "page" is borrowed here.
static uint64_t getLoongArchPage(uint64_t p) {
return p & ~static_cast<uint64_t>(0xfff);
@@ -86,7 +86,7 @@ static uint32_t lo12(uint32_t val) { return val & 0xfff; }
// Calculate the adjusted page delta between dest and PC.
uint64_t elf::getLoongArchPageDelta(uint64_t dest, uint64_t pc, RelType type) {
// Note that if the sequence being relocated is `pcalau12i + addi.d + lu32i.d
- // + lu52i.d`, they must be adjancent so that we can infer the PC of
+ // + lu52i.d`, they must be adjacent so that we can infer the PC of
// `pcalau12i` when calculating the page delta for the other two instructions
// (lu32i.d and lu52i.d). Compensate all the sign-extensions is a bit
// complicated. Just use psABI recommended algorithm.
@@ -539,7 +539,7 @@ void LoongArch::relocate(uint8_t *loc, const Relocation &rel,
return;
case R_LARCH_CALL36: {
- // This relocation is designed for adjancent pcaddu18i+jirl pairs that
+ // This relocation is designed for adjacent pcaddu18i+jirl pairs that
// are patched in one time. Because of sign extension of these insns'
// immediate fields, the relocation range is [-128G - 0x20000, +128G -
// 0x20000) (of course must be 4-byte aligned).
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 6c7ef27cbd4942..00aebb47640e84 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -41,8 +41,8 @@ using namespace llvm::support::endian;
using namespace lld;
using namespace lld::elf;
-// This function is explicity instantiated in ARM.cpp, don't do it here to avoid
-// warnings with MSVC.
+// This function is explicitly instantiated in ARM.cpp, don't do it here to
+// avoid warnings with MSVC.
extern template void ObjFile<ELF32LE>::importCmseSymbols();
extern template void ObjFile<ELF32BE>::importCmseSymbols();
extern template void ObjFile<ELF64LE>::importCmseSymbols();
@@ -323,7 +323,7 @@ template <class ELFT> static void doParseFile(InputFile *file) {
// Add symbols in File to the symbol table.
void elf::parseFile(InputFile *file) { invokeELFT(doParseFile, file); }
-// This function is explicity instantiated in ARM.cpp. Mark it extern here,
+// This function is explicitly instantiated in ARM.cpp. Mark it extern here,
// to avoid warnings when building with MSVC.
extern template void ObjFile<ELF32LE>::importCmseSymbols();
extern template void ObjFile<ELF32BE>::importCmseSymbols();
diff --git a/lld/ELF/Thunks.cpp b/lld/ELF/Thunks.cpp
index 5f543ffdcfaa32..f912f61e372943 100644
--- a/lld/ELF/Thunks.cpp
+++ b/lld/ELF/Thunks.cpp
@@ -1338,7 +1338,7 @@ static Thunk *addThunkV6M(const InputSection &isec, RelType reloc, Symbol &s,
return make<ThumbV6MPILongThunk>(s, a);
fatal("relocation " + toString(reloc) + " to " + toString(s) +
- " not supported for Armv6-M targets for position independant"
+ " not supported for Armv6-M targets for position independent"
" and execute only code");
}
if (isPureCode)
diff --git a/lld/test/ELF/arm-thumb-thunk-v6m-xo.s b/lld/test/ELF/arm-thumb-thunk-v6m-xo.s
index 10f1e73f0b60a1..f1b6c0c194b38a 100644
--- a/lld/test/ELF/arm-thumb-thunk-v6m-xo.s
+++ b/lld/test/ELF/arm-thumb-thunk-v6m-xo.s
@@ -54,4 +54,4 @@ far:
// CHECK-NEXT: <far>:
// CHECK-NEXT: 12345678: bx lr
-// CHECK-PI: error: relocation R_ARM_THM_CALL to far not supported for Armv6-M targets for position independant and execute only code
+// CHECK-PI: error: relocation R_ARM_THM_CALL to far not supported for Armv6-M targets for position independent and execute only code
More information about the llvm-commits
mailing list