From 43c854535efe193b5eee25703e249aef258278ab Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Fri, 30 Jun 2017 07:02:13 +0000 Subject: [llvm-readobj] Improve printouts for COFF ARM64 binaries Differential Revision: https://reviews.llvm.org/D34835 llvm-svn: 306795 --- llvm/lib/Object/COFFObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object') diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp index bba2e3dc08b..1e9b0c5b045 100644 --- a/llvm/lib/Object/COFFObjectFile.cpp +++ b/llvm/lib/Object/COFFObjectFile.cpp @@ -883,7 +883,7 @@ base_reloc_iterator COFFObjectFile::base_reloc_end() const { } uint8_t COFFObjectFile::getBytesInAddress() const { - return getArch() == Triple::x86_64 ? 8 : 4; + return getArch() == Triple::x86_64 || getArch() == Triple::aarch64 ? 8 : 4; } StringRef COFFObjectFile::getFileFormatName() const { -- cgit v1.2.3