[DWARF] - Cleanup relocations proccessing.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 17 May 2017 12:10:51 +0000 (12:10 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 17 May 2017 12:10:51 +0000 (12:10 +0000)
commitfed9f09f481865376db7216cd7716252789f6a5e
tree73ca2c470ccf96b2ef11bcea1aaefdc31c29f92e
parentda7c45468fe1d2ef2526d8aee9a28cf279d3a047
[DWARF] - Cleanup relocations proccessing.

RelocAddrMap was a pair of <width, address>, where width is relocation size (4/8/x, x < 8),
and width field was never used in code.

Relocations proccessing loop had checks for width field. Does not look like DWARF parser
should do that. There is probably no much sense to validate relocations during proccessing
them in parser.

Patch removes relocation's width relative code from DWARFContext.

Differential revision: https://reviews.llvm.org/D33194

llvm-svn: 303251
llvm/include/llvm/DebugInfo/DWARF/DWARFRelocMap.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp