Using an input object file instead of trying to generate an object file.
authorColin LeMahieu <colinl@codeaurora.org>
Thu, 23 Jul 2015 21:40:19 +0000 (21:40 +0000)
committerColin LeMahieu <colinl@codeaurora.org>
Thu, 23 Jul 2015 21:40:19 +0000 (21:40 +0000)
llvm-svn: 243044

llvm/test/tools/llvm-objdump/Inputs/disassemble-data.obj [new file with mode: 0644]
llvm/test/tools/llvm-objdump/disassemble-data.test

diff --git a/llvm/test/tools/llvm-objdump/Inputs/disassemble-data.obj b/llvm/test/tools/llvm-objdump/Inputs/disassemble-data.obj
new file mode 100644 (file)
index 0000000..6381120
Binary files /dev/null and b/llvm/test/tools/llvm-objdump/Inputs/disassemble-data.obj differ
index 78697f2..e9c4e7e 100644 (file)
@@ -1,7 +1,4 @@
 // This test checks that -D disassembles from a data section
-// RUN: llvm-mc -triple x86_64-pc-linux-gnu -filetype=obj -o - %s | \
-// RUN: llvm-objdump -D - | FileCheck %s
+// RUN: llvm-objdump -D %p/Inputs/disassemble-data.obj | FileCheck %s
 
-// CHECK: Disassembly of section .data:
-.data
-.word 0x0
\ No newline at end of file
+// CHECK: Disassembly of section .data:
\ No newline at end of file