Go to file
Keno Fischer c2c6018cce [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
2015-05-31 23:37:04 +00:00
clang [Format] Move UnwrappedLines instead of copying. 2015-05-31 11:18:05 +00:00
clang-tools-extra [clang-tidy] Fix for llvm.org/PR23355 2015-05-29 09:49:59 +00:00
compiler-rt [sanitizer] Add -lrt to dyndd link line. 2015-05-29 22:57:15 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Use a more accurate implementation for exp 2015-05-13 03:55:09 +00:00
libcxx Remove debugging code 2015-05-31 14:01:54 +00:00
libcxxabi libcxx: Switch to use __gnu_unwind_frame() for libunwind. 2015-05-29 15:34:24 +00:00
libunwind Code cleanup: Reindent statements. 2015-05-30 14:00:39 +00:00
lld COFF: Add /alternatename option. 2015-05-31 22:31:31 +00:00
lldb Fix inferior's i/o connections to its console window on Windows 7. 2015-05-29 23:01:25 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm [DWARF] Fix a bug in line info handling 2015-05-31 23:37:04 +00:00
openmp Allow CMAKE_OSX_ARCHITECTURES to build fat library. 2015-05-29 16:13:56 +00:00
polly Dump YAML schedule tree as properly indented tree in DEBUG output 2015-05-30 06:46:59 +00:00