runOnMachineFunction should set IsPIC because relocation model may have been changed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51291 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-05-20 01:56:59 +00:00
parent 76d402beb9
commit a125e62117

View File

@ -115,6 +115,7 @@ bool Emitter::runOnMachineFunction(MachineFunction &MF) {
II = TM.getInstrInfo();
TD = TM.getTargetData();
Is64BitMode = TM.getSubtarget<X86Subtarget>().is64Bit();
IsPIC = TM.getRelocationModel() == Reloc::PIC_;
do {
DOUT << "JITTing function '" << MF.getFunction()->getName() << "'\n";