A fix for PR21176.
authorEkaterina Romanova <katya_romanova@playstation.sony.com>
Fri, 12 Dec 2014 05:11:47 +0000 (05:11 +0000)
committerEkaterina Romanova <katya_romanova@playstation.sony.com>
Fri, 12 Dec 2014 05:11:47 +0000 (05:11 +0000)
commite0b0363e44af59f31a9d70c8636a0211e3713aa7
tree32663c20992a597b57e984c5f20df82a3d0eda85
parenta511846bdfafbe5f0a5d1c49fb048472a18ca446
A fix for PR21176.

DW_OP_const <const> doesn't describe a constant value, but a value at a constant address.
The proper way to describe a constant value is DW_OP_constu <const>, DW_OP_stack_value.
Added DW_OP_stack_value to the stack.

Marked incorrect-variable-debugloc1.ll to xfail for PowerPC64, while the the failure (PR21881)
is being investigated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/incorrect-variable-debugloc1.ll [new file with mode: 0644]