diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-12-02 06:21:34 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-12-02 06:21:34 +0000 |
commit | b073cb9be2bbd9458035f6ce28b8df78a5399b8a (patch) | |
tree | 4d99d4ef04bd63995861e9e14f1026e28504bc97 /llvm/test/tools/llvm-dwp/X86/simple.test | |
parent | 12e7b99ed052e5e2104d36c83f343a0dd7864d1d (diff) | |
download | bcm5719-llvm-b073cb9be2bbd9458035f6ce28b8df78a5399b8a.tar.gz bcm5719-llvm-b073cb9be2bbd9458035f6ce28b8df78a5399b8a.zip |
[llvm-dwp] Emit a rather fictional debug_cu_index
This is very rudimentary support for debug_cu_index, but it is enough to
allow llvm-dwarfdump to find the offsets for contributions and
correctly dump debug_info.
It will need to actually find the real signature of the unit and build
the real hash table with the right number of buckets, as per the DWP
specification.
It will also need to be expanded to cover the tu_index as well.
llvm-svn: 254489
Diffstat (limited to 'llvm/test/tools/llvm-dwp/X86/simple.test')
-rw-r--r-- | llvm/test/tools/llvm-dwp/X86/simple.test | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/test/tools/llvm-dwp/X86/simple.test b/llvm/test/tools/llvm-dwp/X86/simple.test index 754450f13f3..aa5ae40dc2b 100644 --- a/llvm/test/tools/llvm-dwp/X86/simple.test +++ b/llvm/test/tools/llvm-dwp/X86/simple.test @@ -33,12 +33,13 @@ CHECK: DW_AT_name {{.*}} "a" CHECK: DW_TAG_structure_type CHECK: DW_AT_name {{.*}} "foo" -FIXME: Using cu_index, identify that abbr_offset is 0x0031, not 0x0000 -CHECK: 0x00000029: Compile Unit: length = 0x00000031 version = 0x0004 abbr_offset = 0x0000 addr_size = 0x08 (next unit at 0x0000005e) -FIXME: Using cu_index, use strings based on the right str index offset -CHECK: DW_AT_name {{.*}} "a.cpp" -FIXME: Using cu_index to find the right abbrevs at abbr_offset, this abbrevation should actually be structure_type -CHECK: DW_TAG_variable +CHECK: 0x00000029: Compile Unit: length = 0x00000031 version = 0x0004 abbr_offset = 0x0031 addr_size = 0x08 (next unit at 0x0000005e) +CHECK: DW_AT_name {{.*}} "b.cpp" +CHECK: DW_TAG_structure_type +CHECK: DW_AT_name {{.*}} "bar" +CHECK: DW_TAG_subprogram +CHECK: DW_AT_name {{.*}} "b" +CHECK: DW_TAG_formal_parameter CHECK: .debug_cu_index contents: FIXME: Emit and verify the cu_index contents |