Factor out the code for determining when symblic addresses
authorDan Gohman <gohman@apple.com>
Fri, 26 Sep 2008 19:15:30 +0000 (19:15 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 26 Sep 2008 19:15:30 +0000 (19:15 +0000)
commit97135e1ee51357245561a5108f90a8a1161431a1
treed9ebe8f9c8e3ac1ba267494a9fa12112ede80240
parenta67f32abb5392981dbcb4de4e25bdedb046a8566
Factor out the code for determining when symblic addresses
require RIP-relative addressing and use it to fix a bug
in X86FastISel in x86-64 PIC mode, where it was trying to
use base/index registers with RIP-relative addresses. This
fixes a bunch of x86-64 testsuite failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56676 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/X86/X86TargetMachine.cpp
lib/Target/X86/X86TargetMachine.h