aboutsummaryrefslogtreecommitdiff
path: root/source/Host
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-09-23 20:43:22 +0000
committerMartin Storsjo <martin@martin.st>2019-09-23 20:43:22 +0000
commitc9845f2b2fe67a2896e3aa1ec251a5853192e502 (patch)
treee85950dfd29b236e80196de49238e02637af5507 /source/Host
parent2ce5fed4afa8a2af76972588c170b0150180f3c1 (diff)
downloadlldb-c9845f2b2fe67a2896e3aa1ec251a5853192e502.tar.gz
[LLDB] [Windows] Map COFF ARM machine ids to the right triple architectures
Differential Revision: https://reviews.llvm.org/D67913 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@372658 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Host')
-rw-r--r--source/Host/windows/Host.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Host/windows/Host.cpp b/source/Host/windows/Host.cpp
index 646426487..2ed28066a 100644
--- a/source/Host/windows/Host.cpp
+++ b/source/Host/windows/Host.cpp
@@ -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;
}