Summary:
Object: add IMAGE_FILE_MACHINE_ARM64 The official specifications state that the value of IMAGE_FILE_MACHINE_ARM64 is 0xAA64 (as per the Microsoft Portable Executable and Common Object Format Specification v8.3). Reviewers: rnk Subscribers: llvm-commits, compnerd, ruiu Differential Revision: http://reviews.llvm.org/D11511 llvm-svn: 243434
This commit is contained in:
@@ -744,6 +744,8 @@ StringRef COFFObjectFile::getFileFormatName() const {
|
||||
return "COFF-x86-64";
|
||||
case COFF::IMAGE_FILE_MACHINE_ARMNT:
|
||||
return "COFF-ARM";
|
||||
case COFF::IMAGE_FILE_MACHINE_ARM64:
|
||||
return "COFF-ARM64";
|
||||
default:
|
||||
return "COFF-<unknown arch>";
|
||||
}
|
||||
@@ -757,6 +759,8 @@ unsigned COFFObjectFile::getArch() const {
|
||||
return Triple::x86_64;
|
||||
case COFF::IMAGE_FILE_MACHINE_ARMNT:
|
||||
return Triple::thumb;
|
||||
case COFF::IMAGE_FILE_MACHINE_ARM64:
|
||||
return Triple::aarch64;
|
||||
default:
|
||||
return Triple::UnknownArch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user