mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-10-24 12:04:54 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
456b44fc98
commit
751664fd1b
4 files changed
+7
No files matched your search
@@ -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