The address of an indirect call must be in R12 on Darwin.
authorDale Johannesen <dalej@apple.com>
Tue, 9 Mar 2010 20:15:42 +0000 (20:15 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 9 Mar 2010 20:15:42 +0000 (20:15 +0000)
commitf7b730425fc45a28cafddf6e9907cd89acdae2aa
tree02c80fc610522484f78bd0534af5a5f07b374458
parentf10e43ee7e3cb171e44c201e133fa153778d0da4
The address of an indirect call must be in R12 on Darwin.
Make it so.  (This patch is in LowerCall_Darwin, which seems
to be used by SVR4 code as well; since that doesn't belong here,
I haven't worried about this case.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98077 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/2010-03-09-indirect-call.ll [new file with mode: 0644]