mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
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:
parent
76d402beb9
commit
a125e62117
@ -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
Block a user