llvm-6502/test/DebugInfo
Adrian Prantl 57ed5ffc76 Debug Info: Move the complex expression handling (=the remainder) of
emitDebugLocValue() into DwarfExpression.

Ought to be NFC, but it actually uncovered a bug in the debug-loc-asan.ll
testcase. The testcase checks that the address of variable "y" is stored
at [RSP+16], which also lines up with the comment.
It also check(ed) that the *value* of "y" is stored in RDI before that,
but that is actually incorrect, since RDI is the very value that is
stored in [RSP+16]. Here's the assembler output:

	movb	2147450880(%rcx), %r8b
	#DEBUG_VALUE: bar:y <- RDI
	cmpb	$0, %r8b
	movq	%rax, 32(%rsp)          # 8-byte Spill
	movq	%rsi, 24(%rsp)          # 8-byte Spill
	movq	%rdi, 16(%rsp)          # 8-byte Spill
.Ltmp3:
	#DEBUG_VALUE: bar:y <- [RSP+16]

Fixed the comment to spell out the correct register and the check to
expect an address rather than a value.

Note that the range that is emitted for the RDI location was and is still
wrong, it claims to begin at the function prologue, but really it should
start where RDI is first assigned.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225851 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-13 23:39:11 +00:00
..
AArch64 ARM/AArch64: Attach the FrameSetup MIFlag to CFI instructions. 2014-12-16 00:20:49 +00:00
ARM Thumb1 frame lowering: Mark CFI instructions with the FrameSetup flag. 2014-12-22 23:09:14 +00:00
COFF Band-aid fix for PR22032: don't emit DWARF debug info if AddressSanitizer is enabled on Windows 2014-12-26 17:00:51 +00:00
Inputs IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
Mips IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
PowerPC IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
Sparc IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
SystemZ IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
X86 Debug Info: Move the complex expression handling (=the remainder) of 2015-01-13 23:39:11 +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: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2009-11-05-DeadGlobalVariable.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2009-11-06-NamelessGlobalVariable.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2009-11-10-CurrentFn.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-01-05-DbgScope.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-03-12-llc-crash.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-03-19-DbgDeclare.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-03-24-MemberFn.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-03-30-InvalidDbgInfoCrash.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-04-06-NestedFnDbgInfo.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-04-19-FramePtr.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-05-03-DisableFramePtr.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-05-03-OriginDIE.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-05-10-MultipleCU.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-06-29-InlinedFnLocalVar.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-07-19-Crash.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
2010-10-01-crash.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
arm-relocs.test
array.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
block-asan.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
bug_null_debuginfo.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
constant-pointers.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
cross-cu-inlining.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
cross-cu-linkonce-distinct.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
cross-cu-linkonce.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
cu-range-hole.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
cu-ranges.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
dead-argument-order.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
debug-info-always-inline.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
debug-info-qualifiers.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
debuginfofinder-multiple-cu.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
debuglineinfo.test
duplicate_inline.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
dwarf-public-names.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
dwarfdump-accel.test Reapply "[dwarfdump] Add support for dumping accelerator tables." 2014-11-14 16:15:53 +00:00
dwarfdump-debug-frame-simple.test
dwarfdump-debug-loc-simple.test
dwarfdump-dump-flags.test
dwarfdump-line-dwo.test
dwarfdump-objc.test
dwarfdump-pubnames.test
dwarfdump-ranges.test
dwarfdump-type-units.test
dwarfdump-zlib.test
empty.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
enum-types.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
enum.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
global.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
gmlt.test
incorrect-variable-debugloc1.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
incorrect-variable-debugloc.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
inheritance.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
inline-debug-info-multiret.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
inline-debug-info.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
inline-no-debug-info.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
inline-scopes.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
inlined-arguments.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
inlined-vars.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
llvm-symbolizer-zlib.test
llvm-symbolizer.test
lto-comp-dir.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
member-order.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
member-pointers.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
member-pointers.o
missing-abstract-variable.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
missing-abstract-variable.o
multiline.ll Update multiline.ll testcase to handle (ppc64le) .localentry directive 2015-01-13 18:17:08 +00:00
namespace_function_definition.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
namespace_inline_function_definition.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
namespace.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
nodebug.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
PR20038.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
restrict.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
sugared-constants.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
template-recursive-void.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
tu-composite.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
tu-member-pointer.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
two-cus-from-same-file.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
typedef.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
unconditional-branch.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
varargs.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
version.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00