mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Fix typo in comment: 'unit64_t' to 'uint64_t' (#162869)
Corrects a typo in comments within XCOFFObjectFile.cpp, changing 'unit64_t' to the correct type 'uint64_t' for clarity.
This commit is contained in:
@@ -379,7 +379,7 @@ Expected<StringRef> XCOFFObjectFile::getSectionName(DataRefImpl Sec) const {
|
||||
}
|
||||
|
||||
uint64_t XCOFFObjectFile::getSectionAddress(DataRefImpl Sec) const {
|
||||
// Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
|
||||
// Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
|
||||
// with MSVC.
|
||||
if (is64Bit())
|
||||
return toSection64(Sec)->VirtualAddress;
|
||||
@@ -397,7 +397,7 @@ uint64_t XCOFFObjectFile::getSectionIndex(DataRefImpl Sec) const {
|
||||
}
|
||||
|
||||
uint64_t XCOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
|
||||
// Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
|
||||
// Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
|
||||
// with MSVC.
|
||||
if (is64Bit())
|
||||
return toSection64(Sec)->SectionSize;
|
||||
|
||||
Reference in New Issue
Block a user