OSDN Git Service

[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)
commite85090784ae703dfc0882100b40d34fe371487e6
tree1e110edf7a9b330f72b6fd53bccea2ba95daed6a
parentc2b55b106520ff4db0df5a524ec33ec147b01c6a
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303251 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFRelocMap.h
lib/DebugInfo/DWARF/DWARFContext.cpp