summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/ARM
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2015-01-23 18:52:17 +0000
committerKevin Enderby <enderby@apple.com>2015-01-23 18:52:17 +0000
commit69fe98da1402e12d68379ca2d7415dbfd9fb2b0e (patch)
tree3958e737f776696dc7c27790061605802725e4a2 /llvm/test/tools/llvm-objdump/ARM
parent5cc1569c548048e5427ef2c5c82de4a787c2a397 (diff)
downloadbcm5719-llvm-69fe98da1402e12d68379ca2d7415dbfd9fb2b0e.tar.gz
bcm5719-llvm-69fe98da1402e12d68379ca2d7415dbfd9fb2b0e.zip
Add the option, -data-in-code, to llvm-objdump used with -macho to print the Mach-O data in code table.
llvm-svn: 226921
Diffstat (limited to 'llvm/test/tools/llvm-objdump/ARM')
-rw-r--r--llvm/test/tools/llvm-objdump/ARM/Inputs/data-in-code.macho-armbin0 -> 336 bytes
-rw-r--r--llvm/test/tools/llvm-objdump/ARM/macho-data-in-code.test8
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/ARM/Inputs/data-in-code.macho-arm b/llvm/test/tools/llvm-objdump/ARM/Inputs/data-in-code.macho-arm
new file mode 100644
index 00000000000..e826f29a233
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/ARM/Inputs/data-in-code.macho-arm
Binary files differ
diff --git a/llvm/test/tools/llvm-objdump/ARM/macho-data-in-code.test b/llvm/test/tools/llvm-objdump/ARM/macho-data-in-code.test
new file mode 100644
index 00000000000..1814dc02862
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/ARM/macho-data-in-code.test
@@ -0,0 +1,8 @@
+RUN: llvm-objdump -m -data-in-code %p/Inputs/data-in-code.macho-arm | FileCheck %s
+
+CHECK: Data in code table (4 entries)
+CHECK: offset length kind
+CHECK: 0x00000000 4 DATA
+CHECK: 0x00000004 4 JUMP_TABLE32
+CHECK: 0x00000008 2 JUMP_TABLE16
+CHECK: 0x0000000a 1 JUMP_TABLE8
OpenPOWER on IntegriCloud