Breakpad: Add support for the arm64e "architecture"

llvm-svn: 362960
This commit is contained in:
Pavel Labath 2019-06-10 16:21:26 +00:00
parent 582eaca379
commit 5e173dc5ea
3 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,3 @@
MODULE mac arm64e 4E11896957B3334EB03456BFCEB573760 mac.out
PUBLIC 0 0 _mh_execute_header
PUBLIC f30 0 start

View File

@ -1,5 +1,6 @@
RUN: lldb-test object-file %p/Inputs/identification-linux.syms | FileCheck %s --check-prefix=LINUX
RUN: lldb-test object-file %p/Inputs/identification-macosx.syms | FileCheck %s --check-prefix=MAC
RUN: lldb-test object-file %p/Inputs/identification-macosx-arm64e.syms | FileCheck %s --check-prefix=ARM64E
RUN: lldb-test object-file %p/Inputs/identification-windows.syms | FileCheck %s --check-prefix=WINDOWS
RUN: not lldb-test object-file %p/Inputs/bad-module-id-1.syms 2>&1 | FileCheck %s --check-prefix=ERROR
RUN: not lldb-test object-file %p/Inputs/bad-module-id-2.syms 2>&1 | FileCheck %s --check-prefix=ERROR
@ -21,6 +22,8 @@ MAC: Stripped: false
MAC: Type: debug info
MAC: Strata: user
ARM64E: Architecture: aarch64--macosx
WINDOWS: Plugin name: breakpad
WINDOWS: Architecture: i386--windows
WINDOWS: UUID: A0C91657-80B5-4909-81A1-925EA62165C0-00000001

View File

@ -51,7 +51,7 @@ llvm::Triple::ArchType stringTo<llvm::Triple::ArchType>(llvm::StringRef Str) {
using llvm::Triple;
return llvm::StringSwitch<Triple::ArchType>(Str)
.Case("arm", Triple::arm)
.Case("arm64", Triple::aarch64)
.Cases("arm64", "arm64e", Triple::aarch64)
.Case("mips", Triple::mips)
.Case("ppc", Triple::ppc)
.Case("ppc64", Triple::ppc64)