forked from OSchip/llvm-project
c2c6018cce
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
DWARFAbbreviationDeclaration.cpp | ||
DWARFAcceleratorTable.cpp | ||
DWARFCompileUnit.cpp | ||
DWARFContext.cpp | ||
DWARFDebugAbbrev.cpp | ||
DWARFDebugArangeSet.cpp | ||
DWARFDebugAranges.cpp | ||
DWARFDebugFrame.cpp | ||
DWARFDebugInfoEntry.cpp | ||
DWARFDebugLine.cpp | ||
DWARFDebugLoc.cpp | ||
DWARFDebugRangeList.cpp | ||
DWARFFormValue.cpp | ||
DWARFTypeUnit.cpp | ||
DWARFUnit.cpp | ||
LLVMBuild.txt | ||
Makefile | ||
SyntaxHighlighting.cpp | ||
SyntaxHighlighting.h | ||
module.modulemap |