[mips] Small update to the implementation of eh.return for Mips.
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 2 Apr 2013 23:02:07 +0000 (23:02 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 2 Apr 2013 23:02:07 +0000 (23:02 +0000)
commit67fdafe1cd2c25aa1d245b4becf93324c08ec93e
tree4f8a7be481ed205b46d3e35a5c9fe2377d3c71a6
parentc656fda3aeba9fd8b09d98ed72e75b6c25a1ad49
[mips] Small update to the implementation of eh.return for Mips.

This patch initializes t9 to the handler address, but only if the relocation
model is pic. This handles the case where handler to which eh.return jumps
points to the start of the function.

Patch by Sasa Stankovic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178588 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsSEInstrInfo.cpp
test/CodeGen/Mips/eh-return32.ll
test/CodeGen/Mips/eh-return64.ll