[dwarfdump] Add support for -debug-loc=OFFSET
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 27 Sep 2017 09:33:36 +0000 (09:33 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 27 Sep 2017 09:33:36 +0000 (09:33 +0000)
commit622c563b5a828764a99eac8d950b833ae1b2c68a
treefdf2b5bd2f915eb29f346187d263c6399166c93c
parent6992817a0e2d3413eeb29ac5f4de1148625681c1
[dwarfdump] Add support for -debug-loc=OFFSET

This patch adds support for passing an offset to -debug-loc.

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

llvm-svn: 314286
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug_loc_offset.test [new file with mode: 0644]
llvm/test/tools/llvm-dwarfdump/X86/debugloc.s [new file with mode: 0644]