summaryrefslogtreecommitdiff
path: root/test/DebugInfo/X86/fission-hash.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-13 01:21:55 +0000
committerEric Christopher <echristo@gmail.com>2013-08-13 01:21:55 +0000
commit0710bfa8667ea08ede15bf4f801f25418b4cefa0 (patch)
treea1907f14c046e40962af8c6260bb4fc2dedc933f /test/DebugInfo/X86/fission-hash.ll
parent72dba254ae65b06062106910a70d46f21e19d55a (diff)
downloadllvm-0710bfa8667ea08ede15bf4f801f25418b4cefa0.tar.gz
llvm-0710bfa8667ea08ede15bf4f801f25418b4cefa0.tar.bz2
llvm-0710bfa8667ea08ede15bf4f801f25418b4cefa0.tar.xz
Add the start of DIE hashing for DWARF4 type units and split dwarf
CUs. Currently only hashes the name of CUs and the names of any children, but it's an obvious first step to show the framework. The testcase should continue to be correct, however, as it's an empty TU. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/X86/fission-hash.ll')
-rw-r--r--test/DebugInfo/X86/fission-hash.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/DebugInfo/X86/fission-hash.ll b/test/DebugInfo/X86/fission-hash.ll
new file mode 100644
index 0000000000..8ece061ba7
--- /dev/null
+++ b/test/DebugInfo/X86/fission-hash.ll
@@ -0,0 +1,15 @@
+; RUN: llc -split-dwarf=Enable -generate-cu-hash -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t
+; RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s
+
+; The source is an empty file.
+
+; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x356a7d50a77f5177)
+; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x356a7d50a77f5177)
+
+!llvm.dbg.cu = !{!0}
+!llvm.module.flags = !{!3}
+
+!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.4 (trunk 188230) (llvm/trunk 188234)", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"foo.dwo"} ; [ DW_TAG_compile_unit ] [/usr/local/google/home/echristo/tmp/foo.c] [DW_LANG_C99]
+!1 = metadata !{metadata !"foo.c", metadata !"/usr/local/google/home/echristo/tmp"}
+!2 = metadata !{i32 0}
+!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 3}