summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2017-02-07 21:20:44 +0000
committerKevin Enderby <enderby@apple.com>2017-02-07 21:20:44 +0000
commit86d8bd1da5eb34b922ff6d1d615bfbabd5d0f188 (patch)
tree197ee5e48c961c712111d757d43602b7551b5a68 /llvm/lib/Object/MachOObjectFile.cpp
parentd8f7f31121cdcf505a9bfcb4a95a1db78e6743fc (diff)
downloadbcm5719-llvm-86d8bd1da5eb34b922ff6d1d615bfbabd5d0f188.tar.gz
bcm5719-llvm-86d8bd1da5eb34b922ff6d1d615bfbabd5d0f188.zip
Fix a typo in an error message for a check of invalid Mach-O files where
it was printing the field name fileoff instead of filesize. The original check was added in r278557. This was found in tracking down the problem that lead to the fix in r293842 - [dsymutil] Fix __LINKEDIT vmsize in dsymutil upgrade path rdar://30386075 llvm-svn: 294354
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index c0a7518d1e6..c6ce5b0a586 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -368,7 +368,7 @@ static Error parseSegmentLoadCommand(
CmdName + " extends past the end of the file");
if (S.vmsize != 0 && S.filesize > S.vmsize)
return malformedError("load command " + Twine(LoadCommandIndex) +
- " fileoff field in " + CmdName +
+ " filesize field in " + CmdName +
" greater than vmsize field");
IsPageZeroSegment |= StringRef("__PAGEZERO").equals(S.segname);
} else
OpenPOWER on IntegriCloud