Skip to content

Commit e278e1b

Browse files
authored
[NFC][CodeGen] Fix typos in code comments. (#124382)
This fixes typos in `calcUniqueIDUpdateFlagsAndSize` function.
1 parent 80ab237 commit e278e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ calcUniqueIDUpdateFlagsAndSize(const GlobalObject *GO, StringRef SectionName,
732732
// that section can be assigned an incorrect entry size. To avoid this we
733733
// usually put symbols of the same size into distinct mergeable sections with
734734
// the same name. Doing so relies on the ",unique ," assembly feature. This
735-
// feature is not avalible until bintuils version 2.35
735+
// feature is not available until binutils version 2.35
736736
// (https://sourceware.org/bugzilla/show_bug.cgi?id=25380).
737737
const bool SupportsUnique = Ctx.getAsmInfo()->useIntegratedAssembler() ||
738738
Ctx.getAsmInfo()->binutilsIsAtLeast(2, 35);
@@ -745,7 +745,7 @@ calcUniqueIDUpdateFlagsAndSize(const GlobalObject *GO, StringRef SectionName,
745745
const bool SymbolMergeable = Flags & ELF::SHF_MERGE;
746746
const bool SeenSectionNameBefore =
747747
Ctx.isELFGenericMergeableSection(SectionName);
748-
// If this is the first ocurrence of this section name, treat it as the
748+
// If this is the first occurrence of this section name, treat it as the
749749
// generic section
750750
if (!SymbolMergeable && !SeenSectionNameBefore) {
751751
if (TM.getSeparateNamedSections())

0 commit comments

Comments
 (0)