[mips] Use correct frame register for DWARF info when dynamically realigning the...
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 12 Nov 2015 13:04:16 +0000 (13:04 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 12 Nov 2015 13:04:16 +0000 (13:04 +0000)
commitc988258daa519dcdb47358c00b117a1a91fbd127
tree4de00b853196bfea0269a02b73c9d19db8c91288
parent7086a4139d152bef7a2a6dbb84924e7641f1ff11
[mips] Use correct frame register for DWARF info when dynamically realigning the stack.

Summary:
This patch overrides TargetFrameLowering::getFrameIndexReference() in order to
specify the correct register when the function needs dynamic stack realignment.
The values returned from this function are used in order to create DW_AT_locations
for DWARF info. These locations would use the wrong registers as it's been
reported in PR25028.

Reviewers: dsanders

Subscribers: dean, llvm-commits

Differential Revision: http://reviews.llvm.org/D13511

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252882 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsSEFrameLowering.cpp
lib/Target/Mips/MipsSEFrameLowering.h
test/DebugInfo/Mips/dsr-fixed-objects.ll [new file with mode: 0644]
test/DebugInfo/Mips/dsr-non-fixed-objects.ll [new file with mode: 0644]