Skip to content

Commit 02340bb

Browse files
committed
Revert "[dsymutil] Emit an error when the Mach-O exceeds the 4GB limit."
This reverts commit 1ec03f3. rdar://90667314
1 parent bbad294 commit 02340bb

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

llvm/tools/dsymutil/dsymutil.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -689,19 +689,6 @@ int main(int argc, char **argv) {
689689
Options.LinkOpts, SDKPath))
690690
return EXIT_FAILURE;
691691
}
692-
693-
// The Mach-O object file format is limited to 4GB. Make sure that we print
694-
// an error when we emit an invalid Mach-O companion file. Leave the
695-
// invalid object file around on disk for inspection.
696-
ErrorOr<vfs::Status> stat =
697-
Options.LinkOpts.VFS->status(OutputLocationOrErr->DWARFFile);
698-
if (stat) {
699-
if (stat->getSize() > std::numeric_limits<uint32_t>::max()) {
700-
WithColor::error() << "the linked debug info exceeds the 4GB Mach-O "
701-
"object file format.";
702-
return EXIT_FAILURE;
703-
}
704-
}
705692
}
706693

707694
return EXIT_SUCCESS;

0 commit comments

Comments
 (0)