forked from OSchip/llvm-project
[LLDB] [PECOFF] Recognize arm64 executables
Differential Revision: https://reviews.llvm.org/D67912 llvm-svn: 372657
This commit is contained in:
parent
c98bb8658e
commit
638f072f87
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue