1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/DebugInfo
Keno Fischer e29c01f126 [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
..
AArch64 [DebugInfo] Debug locations for constant SD nodes 2015-05-13 08:58:03 +00:00
ARM [DebugInfo] Debug locations for constant SD nodes 2015-05-13 08:58:03 +00:00
COFF IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
Inputs Add RelocVisitor support for MachO 2015-05-30 19:44:53 +00:00
Mips IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
PDB [llvm-pdbdump] Display full enum definitions. 2015-03-04 06:09:53 +00:00
PowerPC IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
Sparc IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
SystemZ IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
X86 AsmPrinter: Emit the DwarfStringPool offset directly when possible 2015-05-24 16:14:59 +00:00
2009-10-16-Phi.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2009-11-03-InsertExtractValue.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2009-11-05-DeadGlobalVariable.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2009-11-06-NamelessGlobalVariable.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2009-11-10-CurrentFn.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-01-05-DbgScope.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-03-12-llc-crash.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-03-19-DbgDeclare.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-03-24-MemberFn.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-04-06-NestedFnDbgInfo.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-04-19-FramePtr.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-05-03-DisableFramePtr.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-05-03-OriginDIE.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-05-10-MultipleCU.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-06-29-InlinedFnLocalVar.ll AsmPrinter: Emit the DwarfStringPool offset directly when possible 2015-05-24 16:14:59 +00:00
2010-07-19-Crash.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
2010-10-01-crash.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
accel-table-hash-collisions.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
arm-relocs.test
array.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
block-asan.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
bug_null_debuginfo.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
constant-pointers.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
constant-sdnodes-have-dbg-location.ll [DebugInfo] Debug locations for constant SD nodes 2015-05-13 08:58:03 +00:00
constantfp-sdnodes-have-dbg-location.ll [DebugInfo] Debug locations for constant SD nodes 2015-05-13 08:58:03 +00:00
cross-cu-inlining.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
cross-cu-linkonce-distinct.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
cross-cu-linkonce.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
cu-range-hole.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
cu-ranges.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
dead-argument-order.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
debug-info-always-inline.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
debug-info-qualifiers.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
debuginfofinder-forward-declaration.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
debuginfofinder-multiple-cu.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
debuglineinfo-macho.test [DWARF] Fix a bug in line info handling 2015-05-31 23:37:04 +00:00
debuglineinfo.test [DWARF] Fix a bug in line info handling 2015-05-31 23:37:04 +00:00
dwarf-public-names.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
dwarfdump-64-bit-dwarf.test DebugInfo: .debug_line DWARF64 support 2015-05-28 15:38:17 +00:00
dwarfdump-accel.test
dwarfdump-debug-frame-simple.test [dwarfdump] Make debug_frame dump actually useful. 2015-02-25 21:30:22 +00:00
dwarfdump-debug-loc-simple.test
dwarfdump-dump-flags.test
dwarfdump-invalid.test Object, ELF: Use error code instead of calling report_fatal_error() 2015-05-28 20:25:42 +00:00
dwarfdump-line-dwo.test
dwarfdump-objc.test
dwarfdump-pubnames.test
dwarfdump-ranges.test
dwarfdump-type-units.test
dwarfdump-zlib.test
empty.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
enum-types.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
enum.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
global.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
gmlt.test
incorrect-variable-debugloc1.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
incorrect-variable-debugloc.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
inheritance.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
inline-debug-info-multiret.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
inline-debug-info.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
inline-no-debug-info.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
inline-scopes.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
inlined-arguments.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
inlined-vars.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
llvm-symbolizer-zlib.test
llvm-symbolizer.test
location-verifier.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
lto-comp-dir.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
member-order.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
member-pointers.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
member-pointers.o
missing-abstract-variable.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
missing-abstract-variable.o
multiline.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
namespace_function_definition.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
namespace_inline_function_definition.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
namespace.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
nodebug.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
piece-verifier.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
PR20038.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
restrict.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
sugared-constants.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
template-recursive-void.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
tu-composite.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
tu-member-pointer.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
two-cus-from-same-file.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
typedef.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
unconditional-branch.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
varargs.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
version.ll IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00