diff options
| author | Frederic Riss <friss@apple.com> | 2015-08-25 18:19:48 +0000 |
|---|---|---|
| committer | Frederic Riss <friss@apple.com> | 2015-08-25 18:19:48 +0000 |
| commit | 74958d6071bf5f3288736d6644c53dd7d5200ab1 (patch) | |
| tree | ec916519af5972c5911f32b6effdda97b1be689f /llvm/test/tools/dsymutil | |
| parent | 80ab2bebaa37c972191b2e30f6545da6a2fad0bb (diff) | |
| download | bcm5719-llvm-74958d6071bf5f3288736d6644c53dd7d5200ab1.tar.gz bcm5719-llvm-74958d6071bf5f3288736d6644c53dd7d5200ab1.zip | |
[dsymutil] Rewrite thumb triple names in user visible messages.
We autodetect triples from the input file(s) while reading the mach-o debug map.
As we need to create a Target from those triples, we always chose the thumb
variant (because the arm variant might not be 'instantiable' eg armv7m). The
user visible architecture names should still be 'arm' and not 'thumb' variants
though.
llvm-svn: 245960
Diffstat (limited to 'llvm/test/tools/dsymutil')
| -rw-r--r-- | llvm/test/tools/dsymutil/ARM/empty-map.test | 2 | ||||
| -rw-r--r-- | llvm/test/tools/dsymutil/ARM/fat-arch-name.test | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/llvm/test/tools/dsymutil/ARM/empty-map.test b/llvm/test/tools/dsymutil/ARM/empty-map.test index 4cc0e5f67b5..54d9a35cc6e 100644 --- a/llvm/test/tools/dsymutil/ARM/empty-map.test +++ b/llvm/test/tools/dsymutil/ARM/empty-map.test @@ -5,4 +5,4 @@ triple: 'thumbv7-apple-darwin' ... -# CHECK: warning: no debug symbols in executable (-arch thumbv7) +# CHECK: warning: no debug symbols in executable (-arch armv7) diff --git a/llvm/test/tools/dsymutil/ARM/fat-arch-name.test b/llvm/test/tools/dsymutil/ARM/fat-arch-name.test new file mode 100644 index 00000000000..a8b7ca92c58 --- /dev/null +++ b/llvm/test/tools/dsymutil/ARM/fat-arch-name.test @@ -0,0 +1,21 @@ +# REQUIRES: object-emission +# RUN: llvm-dsymutil %p/../Inputs/fat-test.arm.dylib -o %t.dSYM -verbose 2>&1 | FileCheck %s + +# We detect thumb triples from the binaries, because those are the only ones +# that are guaranteed to be able to generate a Target instance (for example +# we would detect armv7m-apple-darwin as non-thumb triple, but you can't +# instantiate a Target from that). In the user-visible architecture names, and +# in the lipo invocation, we need to rewrite the thumb arch names to the arm +# ones. + +# CHECK: warning: no debug symbols in executable (-arch armv7) + +# CHECK: warning: no debug symbols in executable (-arch armv7s) + +# CHECK: warning: no debug symbols in executable (-arch arm64) + +# CHECK: Running lipo +# CHECK-NEXT: lipo -create +# CHECK-SAME: -segalign armv7 +# CHECK-SAME: -segalign armv7s +# CHECK-SAME: -segalign arm64 |

