mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
d52a244185
Only one consumer (llvm-objdump) actually cared about the fact that there were two triples. Others were actively working around the fact that the Triple returned by getArch might have been invalid. As for llvm-objdump, it needs to be acutely aware of both Triples anyway, so being generic in the exposed API is no benefit. Also rename the version of getArch returning a Triple. Users were having to pass an unwanted nullptr to disambiguate the two, which was nasty. The only functional change here is that armv7m and armv7em object files no longer crash llvm-objdump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267249 91177308-0d34-0410-b5e6-96231b3b80d8
40 lines
2.1 KiB
Plaintext
40 lines
2.1 KiB
Plaintext
Processing of the -arch option happens at debug map parsing time, thus just
|
|
looking at the dumped debug maps is enough to validate their effects.
|
|
|
|
RUN: llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib | FileCheck %s -check-prefix=ARM64 -check-prefix=ARMV7S -check-prefix=ARMV7 -check-prefix=CHECK
|
|
RUN: llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch all | FileCheck %s -check-prefix=ARM64 -check-prefix=ARMV7S -check-prefix=ARMV7 -check-prefix=CHECK
|
|
RUN: llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch='*' | FileCheck %s -check-prefix=ARM64 -check-prefix=ARMV7S -check-prefix=ARMV7 -check-prefix=CHECK
|
|
RUN: llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch arm64 | FileCheck %s -check-prefix=ARM64 -check-prefix=CHECK
|
|
RUN: llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch arm | FileCheck %s -check-prefix=ARMV7S -check-prefix=ARMV7 -check-prefix=CHECK
|
|
RUN: llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch armv7 | FileCheck %s -check-prefix=ARMV7 -check-prefix=CHECK
|
|
RUN: llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch arm64 -arch armv7s | FileCheck %s -check-prefix=ARM64 -check-prefix=ARMV7S -check-prefix=CHECK
|
|
RUN: not llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch arm42 2>&1 | FileCheck %s -check-prefix=BADARCH
|
|
RUN: not llvm-dsymutil -oso-prepend-path %p -dump-debug-map %p/Inputs/fat-test.arm.dylib -arch i386 2>&1 | FileCheck %s -check-prefix=EMPTY
|
|
|
|
|
|
ARMV7: ---
|
|
ARMV7-NOT: ...
|
|
ARMV7: triple: 'armv7-apple-darwin'
|
|
ARMV7-NOT: ...
|
|
ARMV7: sym: _armv7_var
|
|
ARMV7-NOT: ---
|
|
|
|
ARMV7S: ---
|
|
ARMV7S-NOT: ...
|
|
ARMV7S: triple: 'armv7s-apple-darwin'
|
|
ARMV7S-NOT: ...
|
|
ARMV7S: sym: _armv7s_var
|
|
ARMV7S-NOT: ---
|
|
|
|
ARM64: ---
|
|
ARM64-NOT: ...
|
|
ARM64: triple: 'arm64-apple-darwin'
|
|
ARM64-NOT: ...
|
|
ARM64: sym: _arm64_var
|
|
ARM64-NOT: ---
|
|
|
|
CHECK: ...
|
|
|
|
BADARCH: error: Unsupported cpu architecture: 'arm42'
|
|
EMPTY: error: no architecture to link
|