summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2017-06-30 07:02:13 +0000
committerMartin Storsjo <martin@martin.st>2017-06-30 07:02:13 +0000
commit43c854535efe193b5eee25703e249aef258278ab (patch)
treee47edeea37074f24d15e48e5aedc2c70745406c2 /llvm/lib/Object/COFFObjectFile.cpp
parent8ae07ac8373ef4858e7bea40676ff8f2c928d814 (diff)
downloadbcm5719-llvm-43c854535efe193b5eee25703e249aef258278ab.tar.gz
bcm5719-llvm-43c854535efe193b5eee25703e249aef258278ab.zip
[llvm-readobj] Improve printouts for COFF ARM64 binaries
Differential Revision: https://reviews.llvm.org/D34835 llvm-svn: 306795
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
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 {
OpenPOWER on IntegriCloud