diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 19:31:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 19:31:49 +0000 |
commit | c90cc18b6a28bfd49e74ce609e161ef178f5a2d3 (patch) | |
tree | 4597f6c206bd639a971ae311470e7378512c7a1c /lib/Object | |
parent | 433611bdf395d08093e3edd52846c1774b46caf2 (diff) |
Implement MachOObjectFile::getHeaderSize directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/MachOObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp index 31e8be0f94..ee42bc8f0b 100644 --- a/lib/Object/MachOObjectFile.cpp +++ b/lib/Object/MachOObjectFile.cpp @@ -86,7 +86,7 @@ const MachOFormat::Header *MachOObjectFile::getHeader() const { } unsigned MachOObjectFile::getHeaderSize() const { - return MachOObj->getHeaderSize(); + return is64Bit() ? macho::Header64Size : macho::Header32Size; } StringRef MachOObjectFile::getData(size_t Offset, size_t Size) const { |