summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorKeno Fischer <kfischer@college.harvard.edu>2015-05-31 23:37:04 +0000
committerKeno Fischer <kfischer@college.harvard.edu>2015-05-31 23:37:04 +0000
commitc2c6018cce299d57512294e22a16459d1e56bd33 (patch)
treeb704e9885c480e6188e74a78e67297fdd3f46ab7 /llvm/lib/Object/ObjectFile.cpp
parenta82ce1d97ae601a3e68c19fe0e8a88a73835caed (diff)
downloadbcm5719-llvm-c2c6018cce299d57512294e22a16459d1e56bd33.tar.gz
bcm5719-llvm-c2c6018cce299d57512294e22a16459d1e56bd33.zip
[DWARF] Fix a bug in line info handling
This fixes a bug in the line info handling in the dwarf code, based on a problem I when implementing RelocVisitor support for MachO. Since addr+size will give the first address past the end of the function, we need to back up one line table entry. Fix this by looking up the end_addr-1, which is the last address in the range. Note that this also removes a duplicate output from the llvm-rtdyld line table dump. The relevant line is the end_sequence one in the line table and has an offset of the first address part the end of the range and hence should not be included. Also factor out the common functionality into a separate function. This comes up on MachO much more than on ELF, since MachO doesn't store the symbol size separately, hence making said situation always occur. Differential Revision: http://reviews.llvm.org/D9925 llvm-svn: 238699
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud