aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/MachO
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2012-05-18 00:13:56 +0000
committerKevin Enderby <enderby@apple.com>2012-05-18 00:13:56 +0000
commit59c15e920c9873804f3150d0c13357696f09e300 (patch)
tree82c77529b56aa705bb4e1018d39447f604f65653 /test/MC/MachO
parent0e5e821a6940acb12f69eca11c244e505c58e0b8 (diff)
downloadexternal_llvm-59c15e920c9873804f3150d0c13357696f09e300.zip
external_llvm-59c15e920c9873804f3150d0c13357696f09e300.tar.gz
external_llvm-59c15e920c9873804f3150d0c13357696f09e300.tar.bz2
Fixed a bug in llvm-objdump when disassembling using -macho option for a binary
containing no symbols. Fixed the crash and fixed it not disassembling anything. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/MachO')
-rw-r--r--test/MC/MachO/ARM/llvm-objdump-macho-stripped.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/MachO/ARM/llvm-objdump-macho-stripped.s b/test/MC/MachO/ARM/llvm-objdump-macho-stripped.s
new file mode 100644
index 0000000..7fcec52
--- /dev/null
+++ b/test/MC/MachO/ARM/llvm-objdump-macho-stripped.s
@@ -0,0 +1,5 @@
+@ RUN: llvm-mc -triple=thumbv7-apple-ios -filetype=obj -o - < %s | llvm-objdump -d -macho -triple=thumbv7-apple-ios - | FileCheck %s
+ nop
+# CHECK: 0: 00 bf nop
+# We are checking that disassembly happens when there are no symbols.
+# rdar://11460289