summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-dwp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2016-02-26 07:04:58 +0000
committerDavid Blaikie <dblaikie@gmail.com>2016-02-26 07:04:58 +0000
commit5d6d4dc3061777393f4d2b830186a2f716c689a0 (patch)
treeb659f77bc6ce79840c23740cfb98e1c3bbbb2947 /llvm/test/tools/llvm-dwp
parentce63c2053d5ff8f67b5bdaf4aea6446315830f1f (diff)
downloadbcm5719-llvm-5d6d4dc3061777393f4d2b830186a2f716c689a0.tar.gz
bcm5719-llvm-5d6d4dc3061777393f4d2b830186a2f716c689a0.zip
llvm-dwp: Support empty .dwo files
Though a bit odd, this is handy for a few reasons - for example, in a build system that wants consistent input/output of build steps, but where split-dwarf might be overriden/disabled by the user on a per-file basis. llvm-svn: 261987
Diffstat (limited to 'llvm/test/tools/llvm-dwp')
-rw-r--r--llvm/test/tools/llvm-dwp/Inputs/empty.dwobin0 -> 208 bytes
-rw-r--r--llvm/test/tools/llvm-dwp/X86/empty.test8
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-dwp/Inputs/empty.dwo b/llvm/test/tools/llvm-dwp/Inputs/empty.dwo
new file mode 100644
index 00000000000..c48a82cf4d7
--- /dev/null
+++ b/llvm/test/tools/llvm-dwp/Inputs/empty.dwo
Binary files differ
diff --git a/llvm/test/tools/llvm-dwp/X86/empty.test b/llvm/test/tools/llvm-dwp/X86/empty.test
new file mode 100644
index 00000000000..78e4eb9b889
--- /dev/null
+++ b/llvm/test/tools/llvm-dwp/X86/empty.test
@@ -0,0 +1,8 @@
+RUN: llvm-dwp %p/../Inputs/empty.dwo -o %t
+RUN: llvm-dwarfdump %t | FileCheck %s
+
+CHECK-LABEL: .debug_cu_index
+CHECK-NOT: version
+CHECK-LABEL: .debug_tu_index
+CHECK-NOT: version
+CHECK: .debug_
OpenPOWER on IntegriCloud