forked from OSchip/llvm-project
runOnMachineFunction should set IsPIC because relocation model may have been changed.
llvm-svn: 51291
This commit is contained in:
parent
d717761a2b
commit
974722b16f
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue