[mips] For indirect calls we don't need $gp to point to .got. Mips linker
authorSasa Stankovic <Sasa.Stankovic@imgtec.com>
Wed, 1 Oct 2014 08:22:21 +0000 (08:22 +0000)
committerSasa Stankovic <Sasa.Stankovic@imgtec.com>
Wed, 1 Oct 2014 08:22:21 +0000 (08:22 +0000)
commit05a13f0bd0824ce83adaedc569ed6fa84c4c44f3
tree3b12d0c323a4d070f52d72bd61234f6cec083e60
parentc68ef2ad231bff5c4d84798e4476852791ef64e1
[mips] For indirect calls we don't need $gp to point to .got.  Mips linker
doesn't generate lazy binding stub for a function whose address is taken in
the program.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218744 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips16ISelLowering.cpp
lib/Target/Mips/Mips16ISelLowering.h
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsISelLowering.h
lib/Target/Mips/MipsSEISelLowering.cpp
lib/Target/Mips/MipsSEISelLowering.h
test/CodeGen/Mips/gpreg-lazy-binding.ll
test/CodeGen/Mips/prevent-hoisting.ll