summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-10-16 19:14:49 +0000
committerJason Molenda <jmolenda@apple.com>2019-10-16 19:14:49 +0000
commit7dd7a3607596a51044b8706ebf6df2e613ce1e9b (patch)
treeceaacaa39ab7238f81442a520fc67f7c17b7294f /lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp
parent930ada91ce8ff9715e2ca7309bc946dbb9162dfb (diff)
downloadbcm5719-llvm-7dd7a3607596a51044b8706ebf6df2e613ce1e9b.tar.gz
bcm5719-llvm-7dd7a3607596a51044b8706ebf6df2e613ce1e9b.zip
Add arm64_32 support to lldb, an ILP32 codegen
that runs on arm64 ISA targets, specifically Apple watches. Differential Revision: https://reviews.llvm.org/D68858 llvm-svn: 375032
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp
index 9fb388c26c7..fa190dbd10f 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp
@@ -75,6 +75,7 @@ PlatformSP PlatformRemoteAppleWatch::CreateInstance(bool force,
switch (arch->GetMachine()) {
case llvm::Triple::arm:
case llvm::Triple::aarch64:
+ case llvm::Triple::aarch64_32:
case llvm::Triple::thumb: {
const llvm::Triple &triple = arch->GetTriple();
llvm::Triple::VendorType vendor = triple.getVendor();
@@ -176,6 +177,9 @@ bool PlatformRemoteAppleWatch::GetSupportedArchitectureAtIndex(uint32_t idx,
case 6:
arch.SetTriple("thumbv7s-apple-watchos");
return true;
+ case 7:
+ arch.SetTriple("arm64_32-apple-watchos");
+ return true;
default:
break;
}
@@ -204,6 +208,9 @@ bool PlatformRemoteAppleWatch::GetSupportedArchitectureAtIndex(uint32_t idx,
case 6:
arch.SetTriple("thumbv7s-apple-watchos");
return true;
+ case 7:
+ arch.SetTriple("arm64_32-apple-watchos");
+ return true;
default:
break;
}
@@ -229,6 +236,9 @@ bool PlatformRemoteAppleWatch::GetSupportedArchitectureAtIndex(uint32_t idx,
case 5:
arch.SetTriple("thumbv7s-apple-watchos");
return true;
+ case 6:
+ arch.SetTriple("arm64_32-apple-watchos");
+ return true;
default:
break;
}
@@ -254,6 +264,9 @@ bool PlatformRemoteAppleWatch::GetSupportedArchitectureAtIndex(uint32_t idx,
case 5:
arch.SetTriple("thumbv7s-apple-watchos");
return true;
+ case 6:
+ arch.SetTriple("arm64_32-apple-watchos");
+ return true;
default:
break;
}
@@ -273,6 +286,9 @@ bool PlatformRemoteAppleWatch::GetSupportedArchitectureAtIndex(uint32_t idx,
case 3:
arch.SetTriple("thumbv7-apple-watchos");
return true;
+ case 4:
+ arch.SetTriple("arm64_32-apple-watchos");
+ return true;
default:
break;
}
OpenPOWER on IntegriCloud