[llvm-dwp] Emit a rather fictional debug_cu_index
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 2 Dec 2015 06:21:34 +0000 (06:21 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 2 Dec 2015 06:21:34 +0000 (06:21 +0000)
commit5001b2a939f5f87aec2279a4476c76d0415f97ef
treec675b3b21766239b63792395bb765c0cdb34d4a2
parentb9f437f75925cb910934f522cde756ee532a2119
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254489 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h
include/llvm/MC/MCObjectFileInfo.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
lib/MC/MCObjectFileInfo.cpp
test/tools/llvm-dwp/X86/simple.test
tools/llvm-dwp/llvm-dwp.cpp