aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorAlexey Bader <alexey.bader@intel.com>2025-01-26 23:58:58 +0200
committerGitHub <noreply@github.com>2025-01-26 13:58:58 -0800
commite278e1b6ece025ace4238748c0f57fda3ca833f9 (patch)
tree3a3bd0934c8b637483fb6f4b1bd221e40c8790b4 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent80ab237c1187aa7e8a1f546175887d768fa14e2d (diff)
downloadllvm-e278e1b6ece025ace4238748c0f57fda3ca833f9.zip
llvm-e278e1b6ece025ace4238748c0f57fda3ca833f9.tar.gz
llvm-e278e1b6ece025ace4238748c0f57fda3ca833f9.tar.bz2
[NFC][CodeGen] Fix typos in code comments. (#124382)
This fixes typos in `calcUniqueIDUpdateFlagsAndSize` function.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index fbbd92a..6ab6d18 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -732,7 +732,7 @@ calcUniqueIDUpdateFlagsAndSize(const GlobalObject *GO, StringRef SectionName,
// that section can be assigned an incorrect entry size. To avoid this we
// usually put symbols of the same size into distinct mergeable sections with
// the same name. Doing so relies on the ",unique ," assembly feature. This
- // feature is not avalible until bintuils version 2.35
+ // feature is not available until binutils version 2.35
// (https://sourceware.org/bugzilla/show_bug.cgi?id=25380).
const bool SupportsUnique = Ctx.getAsmInfo()->useIntegratedAssembler() ||
Ctx.getAsmInfo()->binutilsIsAtLeast(2, 35);
@@ -745,7 +745,7 @@ calcUniqueIDUpdateFlagsAndSize(const GlobalObject *GO, StringRef SectionName,
const bool SymbolMergeable = Flags & ELF::SHF_MERGE;
const bool SeenSectionNameBefore =
Ctx.isELFGenericMergeableSection(SectionName);
- // If this is the first ocurrence of this section name, treat it as the
+ // If this is the first occurrence of this section name, treat it as the
// generic section
if (!SymbolMergeable && !SeenSectionNameBefore) {
if (TM.getSeparateNamedSections())