[dsymutil] Fix handling of inlined_subprogram low_pcs
authorFrederic Riss <friss@apple.com>
Mon, 31 Aug 2015 01:43:14 +0000 (01:43 +0000)
committerFrederic Riss <friss@apple.com>
Mon, 31 Aug 2015 01:43:14 +0000 (01:43 +0000)
commitefe301647785e6528951f2a7ae6d3b9cd69c50bf
treee0466bb38982a09ab3004c4d0656cb83930e9ea1
parent74e7aca9e09d547d9117b11b69d49591e683b702
[dsymutil] Fix handling of inlined_subprogram low_pcs

The value of an inlined subprogram low_pc attribute should not
get relocated, but it can happen that it matches the enclosing
function's start address and thus gets the generic treatment.
Special case it to avoid applying the PC offset twice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246406 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/ARM/dummy-debug-map-amr64.map [new file with mode: 0644]
test/tools/dsymutil/ARM/inlined-low_pc.c [new file with mode: 0644]
test/tools/dsymutil/ARM/lit.local.cfg
test/tools/dsymutil/Inputs/inlined-low_pc/1.o [new file with mode: 0644]
tools/dsymutil/DwarfLinker.cpp