File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 36
36
#include " llvm/Support/CrashRecoveryContext.h"
37
37
#include " llvm/Support/FileCollector.h"
38
38
#include " llvm/Support/FileSystem.h"
39
+ #include " llvm/Support/FormatVariadic.h"
39
40
#include " llvm/Support/InitLLVM.h"
40
41
#include " llvm/Support/Path.h"
41
42
#include " llvm/Support/TargetSelect.h"
@@ -796,12 +797,14 @@ int dsymutil_main(int argc, char **argv) {
796
797
ErrorOr<vfs::Status> stat = Options.LinkOpts .VFS ->status (File.path ());
797
798
if (!stat)
798
799
break ;
799
- FileOffset += stat->getSize ();
800
800
if (FileOffset > UINT32_MAX) {
801
- WithColor::error () << " the universal binary has a slice with an "
802
- " offset exceeds 4GB and will produce an invalid Mach-O file." ;
801
+ WithColor::error () << formatv (
802
+ " the universal binary has a slice with a starting offset ({0:x}) "
803
+ " that exceeds 4GB and will produce an invalid Mach-O file." ,
804
+ FileOffset);
803
805
return EXIT_FAILURE;
804
806
}
807
+ FileOffset += stat->getSize ();
805
808
}
806
809
if (!MachOUtils::generateUniversalBinary (TempFiles,
807
810
OutputLocationOrErr->DWARFFile ,
You can’t perform that action at this time.
0 commit comments