From 02340bb9d95f6a1dc61743f5987c79a20eee4dd1 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 23 Mar 2022 16:11:25 -0700 Subject: [PATCH] Revert "[dsymutil] Emit an error when the Mach-O exceeds the 4GB limit." This reverts commit 1ec03f3de5d580d85cc256058cc0d2dd254b9e1a. rdar://90667314 --- llvm/tools/dsymutil/dsymutil.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/llvm/tools/dsymutil/dsymutil.cpp b/llvm/tools/dsymutil/dsymutil.cpp index 2a8e317bef6de..b8e46e1f80fea 100644 --- a/llvm/tools/dsymutil/dsymutil.cpp +++ b/llvm/tools/dsymutil/dsymutil.cpp @@ -689,19 +689,6 @@ int main(int argc, char **argv) { Options.LinkOpts, SDKPath)) return EXIT_FAILURE; } - - // The Mach-O object file format is limited to 4GB. Make sure that we print - // an error when we emit an invalid Mach-O companion file. Leave the - // invalid object file around on disk for inspection. - ErrorOr stat = - Options.LinkOpts.VFS->status(OutputLocationOrErr->DWARFFile); - if (stat) { - if (stat->getSize() > std::numeric_limits::max()) { - WithColor::error() << "the linked debug info exceeds the 4GB Mach-O " - "object file format."; - return EXIT_FAILURE; - } - } } return EXIT_SUCCESS;