Skip to content

Commit 9098c86

Browse files
committed
Fix typos: 'auxilliary' to 'auxiliary' and multiple other typos
Corrects multiple instances of the misspelling 'auxilliary' to 'auxiliary' across code, comments, and documentation in XCOFF-related files. Also fixes minor typos such as 'unit64_t' to 'uint64_t' and 'expect' to 'except', and updates a mask name from 'IsGlobaLinkageMask' to 'IsGlobalLinkageMask'.
1 parent f3673c5 commit 9098c86

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

lldb/include/lldb/Symbol/SymbolFile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ class SymbolFile : public PluginInterface {
174174
/// object files.
175175
///
176176
/// \param comp_unit
177-
/// When this SymbolFile consists of multiple auxilliary
177+
/// When this SymbolFile consists of multiple auxiliary
178178
/// SymbolFiles, for example, a Darwin debug map that references
179-
/// multiple .o files, comp_unit helps choose the auxilliary
179+
/// multiple .o files, comp_unit helps choose the auxiliary
180180
/// file. In most other cases comp_unit's symbol file is
181181
/// identical with *this.
182182
///

llvm/include/llvm/BinaryFormat/XCOFF.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ struct TracebackTable {
412412
static constexpr uint8_t LanguageIdShift = 16;
413413

414414
// Byte 3
415-
static constexpr uint32_t IsGlobaLinkageMask = 0x0000'8000;
415+
static constexpr uint32_t IsGlobalLinkageMask = 0x0000'8000;
416416
static constexpr uint32_t IsOutOfLineEpilogOrPrologueMask = 0x0000'4000;
417417
static constexpr uint32_t HasTraceBackTableOffsetMask = 0x0000'2000;
418418
static constexpr uint32_t IsInternalProcedureMask = 0x0000'1000;

llvm/include/llvm/IR/MDBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class MDBuilder {
143143
// PC sections metadata.
144144
//===------------------------------------------------------------------===//
145145

146-
/// A pair of PC section name with auxilliary constant data.
146+
/// A pair of PC section name with auxiliary constant data.
147147
using PCSection = std::pair<StringRef, SmallVector<Constant *>>;
148148

149149
/// Return metadata for PC sections.

llvm/lib/MC/XCOFFObjectWriter.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -946,15 +946,15 @@ void XCOFFWriter::writeSymbolEntryForCsectMemberLabel(
946946
(is64Bit() && ExceptionSection.isDebugEnabled) ? 3 : 2);
947947
if (is64Bit() && ExceptionSection.isDebugEnabled) {
948948
// On 64 bit with debugging enabled, we have a csect, exception, and
949-
// function auxilliary entries, so we must increment symbol index by 4.
949+
// function auxiliary entries, so we must increment symbol index by 4.
950950
writeSymbolAuxExceptionEntry(
951951
ExceptionSection.FileOffsetToData +
952952
getExceptionOffset(Entry->second.FunctionSymbol),
953953
Entry->second.FunctionSize,
954954
SymbolIndexMap[Entry->second.FunctionSymbol] + 4);
955955
}
956-
// For exception section entries, csect and function auxilliary entries
957-
// must exist. On 64-bit there is also an exception auxilliary entry.
956+
// For exception section entries, csect and function auxiliary entries
957+
// must exist. On 64-bit there is also an exception auxiliary entry.
958958
writeSymbolAuxFunctionEntry(
959959
ExceptionSection.FileOffsetToData +
960960
getExceptionOffset(Entry->second.FunctionSymbol),
@@ -1015,7 +1015,7 @@ void XCOFFWriter::writeSymbolAuxFunctionEntry(uint32_t EntryOffset,
10151015
void XCOFFWriter::writeSymbolAuxExceptionEntry(uint64_t EntryOffset,
10161016
uint32_t FunctionSize,
10171017
uint32_t EndIndex) {
1018-
assert(is64Bit() && "Exception auxilliary entries are 64-bit only.");
1018+
assert(is64Bit() && "Exception auxiliary entries are 64-bit only.");
10191019
W.write<uint64_t>(EntryOffset);
10201020
W.write<uint32_t>(FunctionSize);
10211021
W.write<uint32_t>(EndIndex);
@@ -1348,7 +1348,7 @@ void XCOFFWriter::addExceptionEntry(const MCSymbol *Symbol,
13481348
unsigned ReasonCode, unsigned FunctionSize,
13491349
bool hasDebug) {
13501350
// If a module had debug info, debugging is enabled and XCOFF emits the
1351-
// exception auxilliary entry.
1351+
// exception auxiliary entry.
13521352
if (hasDebug)
13531353
ExceptionSection.isDebugEnabled = true;
13541354
auto Entry = ExceptionSection.ExceptionTable.find(Symbol->getName());
@@ -1474,8 +1474,8 @@ void XCOFFWriter::assignAddressesAndIndices(MCAssembler &Asm) {
14741474
SymbolIndexMap[Sym.MCSym] = Sym.SymbolTableIndex;
14751475
// 1 main and 1 auxiliary symbol table entry for each contained
14761476
// symbol. For symbols with exception section entries, a function
1477-
// auxilliary entry is needed, and on 64-bit XCOFF with debugging
1478-
// enabled, an additional exception auxilliary entry is needed.
1477+
// auxiliary entry is needed, and on 64-bit XCOFF with debugging
1478+
// enabled, an additional exception auxiliary entry is needed.
14791479
SymbolTableIndex += 2;
14801480
if (hasExceptionSection() && hasExceptEntry) {
14811481
if (is64Bit() && ExceptionSection.isDebugEnabled)

llvm/lib/Object/XCOFFObjectFile.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Expected<StringRef> XCOFFObjectFile::getSectionName(DataRefImpl Sec) const {
379379
}
380380

381381
uint64_t XCOFFObjectFile::getSectionAddress(DataRefImpl Sec) const {
382-
// Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
382+
// Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
383383
// with MSVC.
384384
if (is64Bit())
385385
return toSection64(Sec)->VirtualAddress;
@@ -397,7 +397,7 @@ uint64_t XCOFFObjectFile::getSectionIndex(DataRefImpl Sec) const {
397397
}
398398

399399
uint64_t XCOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
400-
// Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
400+
// Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
401401
// with MSVC.
402402
if (is64Bit())
403403
return toSection64(Sec)->SectionSize;
@@ -473,7 +473,7 @@ Expected<uintptr_t> XCOFFObjectFile::getSectionFileOffsetToRawData(
473473
ECASE(STYP_TEXT, "text");
474474
ECASE(STYP_DATA, "data");
475475
ECASE(STYP_BSS, "bss");
476-
ECASE(STYP_EXCEPT, "expect");
476+
ECASE(STYP_EXCEPT, "except");
477477
ECASE(STYP_INFO, "info");
478478
ECASE(STYP_TDATA, "tdata");
479479
ECASE(STYP_TBSS, "tbss");
@@ -1331,7 +1331,7 @@ Expected<XCOFFCsectAuxRef> XCOFFSymbolRef::getXCOFFCsectAuxRef() const {
13311331
}
13321332

13331333
if (!getObject()->is64Bit()) {
1334-
// In XCOFF32, the csect auxilliary entry is always the last auxiliary
1334+
// In XCOFF32, the csect auxiliary entry is always the last auxiliary
13351335
// entry for the symbol.
13361336
uintptr_t AuxAddr = XCOFFObjectFile::getAdvancedSymbolEntryAddress(
13371337
getEntryAddress(), NumberOfAuxEntries);
@@ -1568,7 +1568,7 @@ uint8_t XCOFFTracebackTable::getLanguageID() const {
15681568
}
15691569

15701570
bool XCOFFTracebackTable::isGlobalLinkage() const {
1571-
return GETBITWITHMASK(0, IsGlobaLinkageMask);
1571+
return GETBITWITHMASK(0, IsGlobalLinkageMask);
15721572
}
15731573

15741574
bool XCOFFTracebackTable::isOutOfLineEpilogOrPrologue() const {

llvm/test/CodeGen/PowerPC/aix-xcoff-exception-section-debug.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
; This file contains exception section testing for when debug information is present.
2-
; The 32-bit test should not print exception auxilliary entries because they are a 64-bit only feature.
3-
; Exception auxilliary entries are present in the 64-bit tests because 64-bit && debug enabled are the requirements.
2+
; The 32-bit test should not print exception auxiliary entries because they are a 64-bit only feature.
3+
; Exception auxiliary entries are present in the 64-bit tests because 64-bit && debug enabled are the requirements.
44
; RUN: llc -mtriple=powerpc-ibm-aix-xcoff -mcpu=ppc -filetype=obj -o %t_32.o < %s
55
; RUN: llvm-readobj --syms %t_32.o | FileCheck %s --check-prefix=SYMS32
66
; RUN: llc -mtriple=powerpc64-unknown-aix -mcpu=ppc -filetype=obj -o %t_32.o < %s
77
; RUN: llvm-readobj --syms %t_32.o | FileCheck %s --check-prefix=SYMS64
88

9-
; If any debug information is included in a module and is XCOFF64, exception auxilliary entries are emitted
9+
; If any debug information is included in a module and is XCOFF64, exception auxiliary entries are emitted
1010

1111
!llvm.module.flags = !{!0, !1}
1212
!llvm.dbg.cu = !{!2}

llvm/test/CodeGen/PowerPC/aix-xcoff-exception-section.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; Testing 32-bit and 64-bit exception section entries, no exception auxilliary
1+
; Testing 32-bit and 64-bit exception section entries, no exception auxiliary
22
; entries should be produced as no debug information is specified.
33
; RUN: llc -mtriple=powerpc-ibm-aix-xcoff -mcpu=ppc -filetype=obj -o %t_32.o < %s
44
; RUN: llvm-readobj --exception-section %t_32.o | FileCheck %s --check-prefix=EXCEPT

0 commit comments

Comments
 (0)