Skip to content

Commit 1391dd7

Browse files
committed
Fix comment to reflect new code.
1 parent 350328a commit 1391dd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Object/MachOObjectFile.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,8 +1995,9 @@ MachOObjectFile::getSectionContents(DataRefImpl Sec) const {
19951995
// Check for large mach-o files where the section contents might exceed
19961996
// 4GB. MachO::section_64 objects only have 32 bit file offsets to the
19971997
// section contents and can overflow in dSYM files. We can track this and
1998-
// adjust the section offset to be 64 bit safe.
1999-
// Assumes the sections are ordered.
1998+
// adjust the section offset to be 64 bit safe. If sections overflow then
1999+
// section ordering is enforced. If sections are not ordered, then an error
2000+
// will be returned stopping invalid section data from being returned.
20002001
uint64_t PrevTrueOffset = 0;
20012002
uint64_t SectOffsetAdjust = 0;
20022003
for (uint32_t SectIdx=0; SectIdx<Sec.d.a; ++SectIdx) {

0 commit comments

Comments
 (0)