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

llvm-svn: 51291
This commit is contained in:
Evan Cheng 2008-05-20 01:56:59 +00:00
parent d717761a2b
commit 974722b16f
1 changed files with 1 additions and 0 deletions

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";