[LLDB] [PECOFF] Recognize arm64 executables

Differential Revision: https://reviews.llvm.org/D67912

llvm-svn: 372657
This commit is contained in:
Martin Storsjo 2019-09-23 20:43:16 +00:00
parent c98bb8658e
commit 638f072f87
1 changed files with 5 additions and 0 deletions

View File

@ -198,6 +198,10 @@ size_t ObjectFilePECOFF::GetModuleSpecifications(
spec.SetTriple("arm-pc-windows");
specs.Append(module_spec);
break;
case MachineArm64:
spec.SetTriple("aarch64-unknown-windows");
specs.Append(module_spec);
break;
default:
break;
}
@ -1200,6 +1204,7 @@ ArchSpec ObjectFilePECOFF::GetArchitecture() {
case llvm::COFF::IMAGE_FILE_MACHINE_ARM:
case llvm::COFF::IMAGE_FILE_MACHINE_ARMNT:
case llvm::COFF::IMAGE_FILE_MACHINE_THUMB:
case llvm::COFF::IMAGE_FILE_MACHINE_ARM64:
ArchSpec arch;
arch.SetArchitecture(eArchTypeCOFF, machine, LLDB_INVALID_CPUTYPE,
IsWindowsSubsystem() ? llvm::Triple::Win32