summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/disassembly-show-raw.test
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-09-27 00:07:01 +0000
committerRui Ueyama <ruiu@google.com>2013-09-27 00:07:01 +0000
commit5b1adbaad9a18084e4da2cac4216b828c179d40f (patch)
tree93482a3ba0934585195688873c42b672df810ca0 /llvm/test/tools/llvm-objdump/disassembly-show-raw.test
parent6ac40036f152242e1bfae177614c090e1995d824 (diff)
downloadbcm5719-llvm-5b1adbaad9a18084e4da2cac4216b828c179d40f.tar.gz
bcm5719-llvm-5b1adbaad9a18084e4da2cac4216b828c179d40f.zip
llvm-objdump: Dump COFF import table if -private-headers option is given.
This is a patch to add capability to llvm-objdump to dump COFF Import Table entries, so that we can write tests for LLD checking Import Table contents. llvm-objdump did not print anything but just file name if the format is COFF and -private-headers option is given. This is a patch adds capability for dumping DLL Import Table, which is specific to the COFF format. In this patch I defined a new iterator to iterate over import table entries. Also added a few functions to COFFObjectFile.cpp to access fields of the entry. Differential Revision: http://llvm-reviews.chandlerc.com/D1719 llvm-svn: 191472
Diffstat (limited to 'llvm/test/tools/llvm-objdump/disassembly-show-raw.test')
-rw-r--r--llvm/test/tools/llvm-objdump/disassembly-show-raw.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/disassembly-show-raw.test b/llvm/test/tools/llvm-objdump/disassembly-show-raw.test
new file mode 100644
index 00000000000..e9956a5ebe4
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/disassembly-show-raw.test
@@ -0,0 +1,14 @@
+// RUN: llvm-objdump -d %p/Inputs/trivial.obj.elf-i386 \
+// RUN: | FileCheck %s -check-prefix=WITHRAW
+// RUN: llvm-objdump -d -no-show-raw-insn %p/Inputs/trivial.obj.elf-i386 \
+// RUN: | FileCheck %s -check-prefix=NORAW
+
+// Expect to find the raw incoding when run with raw output (default), but not
+// when run explicitly with -no-show-raw-insn
+
+WITHRAW: a1 00 00 00 00 movl
+
+NORAW: movl
+NORAW-NOT: a1 00
+
+
OpenPOWER on IntegriCloud