[LLDB] [Windows] Map COFF ARM machine ids to the right triple architectures

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

llvm-svn: 372658
This commit is contained in:
Martin Storsjo 2019-09-23 20:43:22 +00:00
parent 638f072f87
commit e64849b11e
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ bool GetTripleForProcess(const FileSpec &executable, llvm::Triple &triple) {
triple.setArch(llvm::Triple::x86_64);
else if (machineType == 0x14c)
triple.setArch(llvm::Triple::x86);
else if (machineType == 0x1c4)
triple.setArch(llvm::Triple::arm);
else if (machineType == 0xaa64)
triple.setArch(llvm::Triple::aarch64);
return true;
}