diff options
| author | Frederic Riss <friss@apple.com> | 2015-08-25 23:15:26 +0000 |
|---|---|---|
| committer | Frederic Riss <friss@apple.com> | 2015-08-25 23:15:26 +0000 |
| commit | f2aa5e7d19840997ef40fd890dfbaf2d0877661d (patch) | |
| tree | b2136a7ef7b365ad08e3b15d8ebda657ad2d06ac /llvm/test/tools | |
| parent | e9abaad105cff38a09e64f67945629235732fb10 (diff) | |
| download | bcm5719-llvm-f2aa5e7d19840997ef40fd890dfbaf2d0877661d.tar.gz bcm5719-llvm-f2aa5e7d19840997ef40fd890dfbaf2d0877661d.zip | |
[dsymutil] Reapply r245960.
There was an issue in the test setup because the test requires an arch that
wasn't filtered by the lit.local.cfg, but given the set of bots that failed,
I'm not confident this is the (only) issue. So this commit also adds more
output to the test to help me track down the failure if it happens again.
Original commit message:
[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: 245988
Diffstat (limited to 'llvm/test/tools')
| -rw-r--r-- | llvm/test/tools/dsymutil/ARM/empty-map.test | 2 | ||||
| -rw-r--r-- | llvm/test/tools/dsymutil/ARM/fat-arch-name.test | 22 | ||||
| -rw-r--r-- | llvm/test/tools/dsymutil/ARM/lit.local.cfg | 2 |
3 files changed, 25 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..433f530d603 --- /dev/null +++ b/llvm/test/tools/dsymutil/ARM/fat-arch-name.test @@ -0,0 +1,22 @@ +# REQUIRES: object-emission +# RUN: llvm-dsymutil %p/../Inputs/fat-test.arm.dylib -o %t1.dSYM -verbose +# 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 diff --git a/llvm/test/tools/dsymutil/ARM/lit.local.cfg b/llvm/test/tools/dsymutil/ARM/lit.local.cfg index 236e1d34416..b704ac4031f 100644 --- a/llvm/test/tools/dsymutil/ARM/lit.local.cfg +++ b/llvm/test/tools/dsymutil/ARM/lit.local.cfg @@ -1,2 +1,4 @@ if not 'ARM' in config.root.targets: config.unsupported = True +if not 'AArch64' in config.root.targets: + config.unsupported = True |

