Fix X86TargetLowering::LowerExternalSymbol so that it actually works in non-trivial...
authorEli Friedman <eli.friedman@gmail.com>
Thu, 11 Aug 2011 01:48:05 +0000 (01:48 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 11 Aug 2011 01:48:05 +0000 (01:48 +0000)
commit586272d67ca0cd91e49aa0f03298cc1294128385
tree066de174362fbd0de11ad51d825e7c9369921be2
parent78eb93c5916f36e74e73c10e44f4e5b9ca6b769c
Fix X86TargetLowering::LowerExternalSymbol so that it actually works in non-trivial cases.  This hasn't been an issue before because the function isn't normally called (but apparently is used to generate a tail-call to sin() on ELF x86-32 with PIC and SSE2).

Fixes PR9693.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137292 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/tail-call-got.ll [new file with mode: 0644]